diff options
author | Dirk von Suchodoletz | 2006-04-09 16:08:56 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-04-09 16:08:56 +0200 |
commit | b2a4079c3d1da7632756a31c9c82ffe3f949eadb (patch) | |
tree | c6b18993356a4c5543e9128fda84cec6ef96e0fd /initrd/initrd-stuff/etc/functions | |
parent | fix for ip= line configuration problem with etherboot (diff) | |
download | core-b2a4079c3d1da7632756a31c9c82ffe3f949eadb.tar.gz core-b2a4079c3d1da7632756a31c9c82ffe3f949eadb.tar.xz core-b2a4079c3d1da7632756a31c9c82ffe3f949eadb.zip |
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
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r-- | initrd/initrd-stuff/etc/functions | 5 |
1 files changed, 3 insertions, 2 deletions
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 <dirk@goe.net>, 03-04-2006 +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 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%:*} |