[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Etch Bootvorgang wpa_supplicant [Zusatz]



Hallo Michelle,

Michelle Konzack <linux4michelle@freenet.de> wrote:
> Am 2007-03-07 16:17:04, schrieb Matthias Haegele:
>> >>a) /etc/wpa_supplicant-athome.conf
>> >>b) /etc/wpa_supplicant-uni.conf
>> 
>> Kann mir nicht vorstellen wie das zu realisieren w�, lasse mich aber 
>> gerne erleuchten ;-).
>
> In LILO so:
>

Die Idee ist gut, aber …

> ------------------------------------------------
> image=/vmlinux
>     label=Zuhause
>     append=/etc/wpa_supplicant-athome.conf
>     readonly
>
> image=/vmlinux
>     label=Uni
>     append=/etc/wpa_supplicant-uni.conf
>     readonly
> ------------------------------------------------
>
> und dann ein script in
>
> ----[ '/etc/init.d/setup_wpa_supplicant' ]----------------------------
> #!/bin/sh
>
> CONF=/etc/wpa_supplicant.conf
>
> if [ -n "$(echo /proc/cmdline |grep athome.conf)" ] ; then

… das wird nicht funktionieren und wenn es korrekt w�, w�ch �seless use of cat klagen. Es reicht vollkommen:

if grep -q athome.conf /proc/cmdline; then

>   cp --force /etc/wpa_supplicant-athome.conf ${CONF}

An der Stelle w�ch eher einen Symlink hin‐ und herbiegen.

Sch�Gr��
-- 
Da w�ch auch lieber den Panzerf�chein machen als den MCSE.
Bringt mehr, d�das gleiche kosten und macht sicher mehr Spa�
                                   Jens Dittmar in de.comp.security



Reply to: