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/bin/servconfig | |
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/bin/servconfig')
-rwxr-xr-x | initrd/initrd-stuff/bin/servconfig | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig index 7b8bb569..13cdc25a 100755 --- a/initrd/initrd-stuff/bin/servconfig +++ b/initrd/initrd-stuff/bin/servconfig @@ -4,9 +4,7 @@ # for linux diskless clients (executed within initial # ramdisk) # -# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 03-04-2006 -# Blabla -# Blub +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 09-04-2006 # # Copyright: (c) 2006 - RZ Universitaet Freiburg # @@ -28,7 +26,12 @@ ####################################################################### # copy distro specific scripts, programs, libraries and configs -cp -a /etc/sysconfig/files/* /mnt 2>/dev/null +cp -a /etc/sysconfig/files/* /mnt 2>/dev/null & +# boot.local file (different for several distros) +[ -f "/etc/boot.local" -a -n "${D_BOOTLOCAL}" ] && { + echo "# added by $0 (initramfs from $date)" >> /mnt/etc/${D_BOOTLOCAL} + cat /etc/boot.local >> /mnt/etc/${D_BOOTLOCAL} +} # set greeting echo " |