summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-04-09 16:08:56 +0200
committerDirk von Suchodoletz2006-04-09 16:08:56 +0200
commitb2a4079c3d1da7632756a31c9c82ffe3f949eadb (patch)
treec6b18993356a4c5543e9128fda84cec6ef96e0fd /initrd/initrd-stuff/etc/functions
parentfix for ip= line configuration problem with etherboot (diff)
downloadcore-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/functions5
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%:*}