From b2a4079c3d1da7632756a31c9c82ffe3f949eadb Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 9 Apr 2006 14:08:56 +0000 Subject: added bootlocal script (user def. script to run in normal boot), ensured ash shell compatibility of scripts ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@173 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/etc/functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'initrd/initrd-stuff/etc/functions') diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions index 53056344..2f10f180 100644 --- a/initrd/initrd-stuff/etc/functions +++ b/initrd/initrd-stuff/etc/functions @@ -2,7 +2,7 @@ # linux diskless clients (included by init, hwautocfg, # servconfig, ... within initial ramdisk) # -# Author(s): Dirk von Suchodoletz , 03-04-2006 +# Author(s): Dirk von Suchodoletz , 08-04-2006 # Felix Endres, 21-03-2006 # # Copyright: (c) 2006 - RZ Universitaet Freiburg @@ -40,7 +40,7 @@ trigger_device_events () { ####################################################################### # produce error message and if $2 is empty run (debug) shell error () { -local e_msg=$1 +local e_msg="$1" # check if LOGFILE is really writeable if [ -n "${LOGFILE}" ] ; then [ "${LOGFILE}" != "/dev/null" ] && \ @@ -262,6 +262,7 @@ fileget () { for tftp in /bin/atftp /bin/tftp ; do test -x $tftp && break done +echo -e "tftp\t69/tcp\ntftp\t69/udp" > /etc/services if [ -n "$FILESRC" ] ; then cfgfile=${FILESRC#*:} tftpserver=${FILESRC%:*} -- cgit v1.2.3-55-g7522