diff options
| author | Dirk von Suchodoletz | 2008-02-28 02:48:27 +0100 |
|---|---|---|
| committer | Dirk von Suchodoletz | 2008-02-28 02:48:27 +0100 |
| commit | 7da1ffcbc228ac3a1c2fb15a35ed36104f6810a1 (patch) | |
| tree | 2397f17e72a07f7e0e53eac816425d26d4686d8b /initramfs/cdboot/init | |
| parent | Improved CD preboot init file ... (diff) | |
| download | core-7da1ffcbc228ac3a1c2fb15a35ed36104f6810a1.tar.gz core-7da1ffcbc228ac3a1c2fb15a35ed36104f6810a1.tar.xz core-7da1ffcbc228ac3a1c2fb15a35ed36104f6810a1.zip | |
Cleanups and fixes, see #191 ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1584 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/cdboot/init')
| -rwxr-xr-x | initramfs/cdboot/init | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/initramfs/cdboot/init b/initramfs/cdboot/init index 338a171e..5562c167 100755 --- a/initramfs/cdboot/init +++ b/initramfs/cdboot/init @@ -142,7 +142,7 @@ chmod u+x /usr/share/udhcpc/default.script modprobe -q af_packet [ -n $vci ] && vci="-V $vci" udhcpc -n -q $vci -s /usr/share/udhcpc/default.script -i $nwif 2>/dev/null -if test -e /tmp/ipstuff ; then +if grep "ip=" /tmp/ipstuff >/dev/null 2>&1 ; then . /tmp/ipstuff for i in $dns ; do echo "nameserver $i" >> /etc/resolv.conf @@ -164,11 +164,16 @@ wget -q -c -O /tmp/iramfs \ ftp://openslx:OpenS1X@archive.ruf.uni-freiburg.de/iramfs 2>/dev/null ) || \ /bin/ash -# start a debug shell -[ "${DEBUGLEVEL}" -gt 0 ] && /bin/ash +# start a debug shell if needed, else set quiet kernel parameter +if [ "${DEBUGLEVEL}" -gt 0 ] ; then + /bin/ash +else + quiet=quiet + echo -e "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" +fi # start the new kernel with initialramfs and cmdline echo "Booting OpenSLX client ..." kexec -l /tmp/kernel --initrd=/tmp/iramfs --append="ip=$ip:$siaddr:$router:$subnet\ - file=ftp://132.230.4.4/default.tgz debug=${DEBUGLEVEL}" + file=ftp://132.230.4.4/default.tgz debug=${DEBUGLEVEL} $quiet" kexec -e |
