From da68865159eb1fcb68c1722d50d50e323227aff0 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Fri, 1 Jun 2007 14:46:39 +0000 Subject: Cleanup for ntp settings (initial setup is distro independent), cleanup for (W)LAN interface stuff in slx init. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1129 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/init | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'initramfs/initrd-stuff/init') diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init index 7ac9ef3a..3ba3fa1e 100755 --- a/initramfs/initrd-stuff/init +++ b/initramfs/initrd-stuff/init @@ -52,7 +52,6 @@ mkdir -p ${devdir}/pts ${devdir}/shm ${devdir}/.udevdb ${devdir}/.udev export PATH=/bin:/sbin:/usr/bin/:/usr/sbin export date="${slxconf_date}" -export nwif="eth0" export DEBUGLEVEL=0 export KERNEL="${slxconf_kernver}" @@ -65,6 +64,10 @@ export SLXVERSION="${slxconf_slxver}" # do not use dnbd cache file nodnbdcache="yes" +# set a default LAN interface, might be modified for WLAN or on machines with +# more than one ethernet card built in +nwif="eth0" + # mount the important standard directories [ ! -f /proc/cpuinfo ] && mount -n -t proc proc /proc [ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys @@ -303,12 +306,15 @@ else # redirect console (after /dev/null is available, and /dev mounted) [ "${DEBUGLEVEL}" != 8 ] && exec < /dev/console > /dev/null 2>&1 fi -# load network adaptor modules +# load network adaptor modules, check for WLAN specific settings and check +# for multiple ethernet interfaces (not implemented yet) hwautocfg nwmod if [ -n "${essid}" ] ; then wlanlinksetup #echo "Starting shell for testing of WLAN setup procedure" #/bin/ash +else + : # check here for the active ethernet link fi # set up loopback networking -- cgit v1.2.3-55-g7522