summaryrefslogtreecommitdiffstats
path: root/initrd/distro-specs/debian
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-03-31 00:19:08 +0200
committerDirk von Suchodoletz2006-03-31 00:19:08 +0200
commit54af05f4c6dbddd150b02004dd7ce83386a80f9c (patch)
tree0da72e485a85c0f26fc80694c4f542aac575c7c4 /initrd/distro-specs/debian
parentfixed halt ... (diff)
downloadcore-54af05f4c6dbddd150b02004dd7ce83386a80f9c.tar.gz
core-54af05f4c6dbddd150b02004dd7ce83386a80f9c.tar.xz
core-54af05f4c6dbddd150b02004dd7ce83386a80f9c.zip
halt, reboot in runlevel 0 and 6 ...
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@135 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/distro-specs/debian')
-rw-r--r--initrd/distro-specs/debian/functions-3.119
1 files changed, 15 insertions, 4 deletions
diff --git a/initrd/distro-specs/debian/functions-3.1 b/initrd/distro-specs/debian/functions-3.1
index 9037bc84..714e089b 100644
--- a/initrd/distro-specs/debian/functions-3.1
+++ b/initrd/distro-specs/debian/functions-3.1
@@ -2,20 +2,31 @@
# linux diskless clients (executed within initial
# ramdisk after genconfig)
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 08-03-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 31-03-2006
# Blabla
# Blub
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
#
-# Version: 0.2.1b
+# Version: 0.2.1c
# distro specific stuff to initialize
preinit () {
- echo "dhcp:x:101:">>/etc/group
- echo "dhcp:x:101:101::/nonexistent:/bin/false">>/etc/passwd
+ :
}
+postinit () {
+ :
+}
+
+# distro specific general function called from servconfig script
+config_distro () {
+# add the halt link to the 0 and 6 runlevel directories
+ ln -sf ../halt /mnt/etc/rc0.d/S90halt
+ ln -sf ../halt /mnt/etc/rc6.d/S90reboot
+}
+
+
# linking runlevel scripts
rllinker () {
local script="$1"