diff options
author | Dirk von Suchodoletz | 2007-06-01 16:46:39 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-06-01 16:46:39 +0200 |
commit | da68865159eb1fcb68c1722d50d50e323227aff0 (patch) | |
tree | d7f693342d750760ff6fa2354ad63bce35c5003e /initramfs/initrd-stuff/init | |
parent | Extended blacklist (slamr modem driver is not needed in any case :-)) (diff) | |
download | core-da68865159eb1fcb68c1722d50d50e323227aff0.tar.gz core-da68865159eb1fcb68c1722d50d50e323227aff0.tar.xz core-da68865159eb1fcb68c1722d50d50e323227aff0.zip |
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
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-x | initramfs/initrd-stuff/init | 10 |
1 files changed, 8 insertions, 2 deletions
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 |