summaryrefslogtreecommitdiffstats
path: root/initrd
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
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')
-rw-r--r--initrd/distro-specs/debian/functions-3.119
-rw-r--r--initrd/distro-specs/gentoo/functions-2005.18
-rw-r--r--initrd/distro-specs/suse/functions-9.34
-rw-r--r--initrd/distro-specs/ubuntu/functions-5.1015
4 files changed, 31 insertions, 15 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"
diff --git a/initrd/distro-specs/gentoo/functions-2005.1 b/initrd/distro-specs/gentoo/functions-2005.1
index 1cdc163c..7852853c 100644
--- a/initrd/distro-specs/gentoo/functions-2005.1
+++ b/initrd/distro-specs/gentoo/functions-2005.1
@@ -2,11 +2,11 @@
# linux diskless clients (executed within initial
# ramdisk after genconfig)
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 30-03-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 31-03-2006
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
#
-# Version: 0.0.1c
+# Version: 0.0.1d
# distro specific stuff to initialize
preinit () {
@@ -17,8 +17,10 @@ postinit () {
:
}
+# distro specific general function called from servconfig script
config_distro () {
-echo -e "DXS-VERSION=4.0a\INITRAMFS-GEN-DATE=$date" >> /mnt/etc/SuSE-release
+echo -e "dxs version 4.0a\initramfs generation date $date" \
+ >> /mnt/etc/gentoo-release
}
# udev service - not checked!
diff --git a/initrd/distro-specs/suse/functions-9.3 b/initrd/distro-specs/suse/functions-9.3
index fd0a9f76..39159383 100644
--- a/initrd/distro-specs/suse/functions-9.3
+++ b/initrd/distro-specs/suse/functions-9.3
@@ -37,8 +37,8 @@ export no_proxy" > /mnt/etc/SuSEconfig/profile
echo -e "DXS VERSION = 4.0a\nINITRAMFS GENERATION DATE = $date" \
>> /mnt/etc/SuSE-release
# add the halt link to the 0 and 6 runlevel directories
- ln -sf ../halt /mnt/etc/init.d/rc0.d/K20halt
- ln -sf ../halt /mnt/etc/init.d/rc6.d/K20reboot
+ ln -sf ../halt /mnt/etc/init.d/rc0.d/S20halt
+ ln -sf ../halt /mnt/etc/init.d/rc6.d/S20reboot
}
# udev/hotplug - auto device discovery service
diff --git a/initrd/distro-specs/ubuntu/functions-5.10 b/initrd/distro-specs/ubuntu/functions-5.10
index d4038840..0966d41b 100644
--- a/initrd/distro-specs/ubuntu/functions-5.10
+++ b/initrd/distro-specs/ubuntu/functions-5.10
@@ -2,23 +2,23 @@
# linux diskless clients (executed within initial
# ramdisk after genconfig)
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 24-03-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 31-03-2006
# Nico Dietrich
# Felix Endres
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
#
-# Version: 0.2.1c
+# Version: 0.2.1d
# distro specific stuff to initialize
preinit () {
echo "Creating dhcp user"
echo "dhcp:x:101:">>/etc/group
- echo "dhcp:x:101:101::/nonexistent:/bin/false">>/etc/passwd
+ echo "dhcp:x:101:101::/nonexistent:/bin/false" >>/etc/passwd
# load unix module to provide sockets
- modprobe ${MODPRV} unix || error " Failed to load the \"unix\" module. \
- Problems with Hardware detection will probably arise"
+ modprobe ${MODPRV} unix || error " Failed to load the \"unix\" module. \
+ Problems with Hardware detection\nwill probably arise"
}
postinit () {
@@ -27,7 +27,10 @@ postinit () {
# distro specific function called from servconfig script
config_distro () {
-# fixme!! add halt runlevel links here!!
+# add the halt link to the 0 and 6 runlevel directories
+# fixmee!! check ...
+# ln -sf ../halt /mnt/etc/rc0.d/S90halt
+# ln -sf ../halt /mnt/etc/rc6.d/S90reboot
}
# AUS SuSE-9.3