diff options
author | Dirk von Suchodoletz | 2007-08-01 14:50:33 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-08-01 14:50:33 +0200 |
commit | 2529d5de958238d2914e8670f3ed9104c39d9db5 (patch) | |
tree | f1890d6a6bb3fcb3e13307d9258eeff167b05dba /initramfs/initrd-stuff/etc/functions | |
parent | * dropped support for CSV databases, as they are simply not good enough (diff) | |
download | core-2529d5de958238d2914e8670f3ed9104c39d9db5.tar.gz core-2529d5de958238d2914e8670f3ed9104c39d9db5.tar.xz core-2529d5de958238d2914e8670f3ed9104c39d9db5.zip |
Allow local block device for client root filesystem (URI is
rootfs=lbdev://disk/fs, e.g. disk=sda2, fs=squashfs)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1296 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r-- | initramfs/initrd-stuff/etc/functions | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions index c0a45725..34b1cd27 100644 --- a/initramfs/initrd-stuff/etc/functions +++ b/initramfs/initrd-stuff/etc/functions @@ -182,11 +182,11 @@ fi ############################################################################# # definition of wlan interface name and wireless connect wlanlinksetup () { -if=$(iwconfig 2>/dev/null|sed -n "/ESSID:/p"|sed "s/ .*//") +local wlanif=$(iwconfig 2>/dev/null|sed -n "/ESSID:/p"|sed "s/ .*//") if [ -n "$if" ] ; then - ip link set dev $if up - if iwconfig $if mode managed essid "${essid}"; then - nwif=$if + ip link set dev ${wlanif} up + if iwconfig ${wlanif} mode managed essid "${essid}"; then + nwif=${wlanif} else error "$init_nowlan" fi |