summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/bin/servconfig
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-06-25 22:31:15 +0200
committerDirk von Suchodoletz2006-06-25 22:31:15 +0200
commit70ee8e665a76b8868b0affed3a4efd2f51757cf2 (patch)
tree785770b86e693fe359fa7a4523a2fa55fb2d43f1 /initrd/initrd-stuff/bin/servconfig
parentMassive changes for distro specific configurations (mkdxsinitrd, (diff)
downloadcore-70ee8e665a76b8868b0affed3a4efd2f51757cf2.tar.gz
core-70ee8e665a76b8868b0affed3a4efd2f51757cf2.tar.xz
core-70ee8e665a76b8868b0affed3a4efd2f51757cf2.zip
Added descriptions, some cleanups, ...
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@250 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/bin/servconfig')
-rwxr-xr-xinitrd/initrd-stuff/bin/servconfig26
1 files changed, 15 insertions, 11 deletions
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig
index f27c4055..5dc1f3ff 100755
--- a/initrd/initrd-stuff/bin/servconfig
+++ b/initrd/initrd-stuff/bin/servconfig
@@ -1,8 +1,8 @@
#!/bin/sh
#
# Description: universal (distro independent) configuration script
-# for linux diskless clients (executed within initial
-# ramdisk)
+# for linux diskless clients (executed within initial
+# ramdisk)
#
# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 23-06-2006
# Michael Janczyk, 31-05-2006
@@ -10,6 +10,7 @@
# Oliver Tappe, 23-06-2006
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
+# (c) 2006 - odlx.org project
#
# Version: 0.1.1e
@@ -47,13 +48,13 @@ while [ $len -le 8 ] ; do
done
echo "
WELCOME TO \n (\l)
- __ __ ___ __ __ __ __ __ __
- | | | || | || | | || |_| | | |
- | | | || || | | | / |__|
- | |___ | || | || |_| | / _ __
- |______||__||__| |__| _____/ |__| |__| |__|
+ _____ ____ __ __ __
+ / _ \ | _ \ | | | |_| |
+ | | | | | | | | | | \ /
+ | |_| | | |_| | | |___ / _ \
+ \_____/ |_____/ |______| |__| |__|
- Diskless Workstation (v4.0/$dstr (c) <dirk@goe.net>
+ Diskless Workstation (v4.0/$dstr (c) <odlx project>
">/mnt/etc/issue
#######################################################################
@@ -225,11 +226,12 @@ fi
# copy timezone file defined with language settings
[ -z "$TZ" ] && TZ="$timezone"
cp /mnt/usr/share/zoneinfo/${TZ} /mnt/etc/localtime 2>/dev/null || \
- error " No such timezone data file (needed for ntp time service \
-configuration)." nonfatal
+ error "$scfg_ntptz" nonfatal
config_ntp
-# secure shell server
+# secure shell server - at the moment all clients share one "secret"
+# key or the key has to be regenerated on every bootup or fetched on
+# every bootup from somewhere
config_sshd
# simple network management protocol agent
@@ -323,6 +325,8 @@ fi
#######################################################################
# preparation of /tmp directory (partition 44, nfs scratch, ramdisk)
+# there might be the chance that we have a disk partition available, so
+# wait for completion of detection, setup process
waitfor /tmp/tmpready 10000
# create some directories and correct permissions
tmpisdisk=`sed -n '/\/tmp/p' /mnt/etc/fstab`