X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=linuxrc;h=ff7a57734e000880307970d1199b562b6d744a39;hb=46d197e4807cc8336617c6f65fb776adc77ac5ae;hp=e9d5629fa515e36a52ff80f7ccbd23801995a0a7;hpb=c8a717dfbc6781804fa40bd11d53fcb53dc40d19;p=grml-terminalserver.git diff --git a/linuxrc b/linuxrc index e9d5629..ff7a577 100755 --- a/linuxrc +++ b/linuxrc @@ -2,7 +2,7 @@ # Filename: /linuxrc # Purpose: minirt for kernel 2.6 running on grml live-cd # Authors: (c) Klaus Knopper , (c) Michael Prokop -# Latest change: Don Nov 16 19:08:07 CET 2006 [mika] +# Latest change: Son Dez 03 00:21:25 CET 2006 [mika] ####################################################################################### # hardcoded configurable options @@ -419,7 +419,7 @@ fi if test -z "$NOFIREWIRE" ; then log_begin_msg "Checking for Firewire." if test -f /modules/div/ieee1394.ko ; then - $insmoD /modules/div/ieee1394.ko > /dev/null 2>&1 + $INSMOD /modules/div/ieee1394.ko > /dev/null 2>&1 FOUNDFIREWIRE="" test -f /modules/div/ohci1394.ko && $INSMOD /modules/div/ohci1394.ko > /dev/null 2>&1 && FOUNDFIREWIRE="yes" if test -n "$FOUNDFIREWIRE" ; then @@ -549,7 +549,12 @@ if [ -n "$NFS" ]; then # loading additional modules modLoad sunrpc lockd af_packet nfs - for INTERFACE in `ifconfig -a | grep '^eth' | sed 's/\ .*//'` ; do + dhcp_iface_=$(getbootparam dhcp_iface) + if [ -z "$dhcp_iface_" ]; then + dhcp_iface_=`ifconfig -a | grep '^eth' | sed 's/ .*//'` + fi + + for INTERFACE in $dhcp_iface_ ; do log_begin_msg "Requesting network configuration using udhcp for ${INTERFACE}:" ; echo /static/timeout 10 /static/udhcpc --interface="${INTERFACE}" --foreground --quit --script=/static/udhcp-config.sh # echo "press to start a system shell and configure your system" @@ -883,6 +888,10 @@ mkdir -p /UNIONFS if test -n "$UNIONFS" && /bin/mount -t unionfs -o noatime${SECURE},dirs=/ramdisk=rw:/GRML=ro /UNIONFS /UNIONFS; then # We now have unionfs, copy some data from the initial ramdisk first cp -a /etc/fstab /etc/auto.mnt /etc/filesystems /etc/mtab /UNIONFS/etc/ + # disable resolvconf on the terminalserver client + rm /UNIONFS/etc/resolv.conf + cp -a /etc/resolv.conf /UNIONFS/etc + echo REPORT_ABSENT_SYMLINK=no >> /UNIONFS/etc/default/resolvconf for i in bin boot etc sbin var lib opt root usr; do # Move directories to unionfs if test -d /$i; then mv /$i /$i.old && \