summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-04-11 22:13:35 +0200
committerDirk von Suchodoletz2006-04-11 22:13:35 +0200
commitbff04a5ae648fac46e53a123e3a840bf0c6d59d8 (patch)
tree402253f740a56e98a9f42b7a7b44831cb0a7edd4 /initrd/initrd-stuff/etc/functions
parentSome bugfixes and improved robustness against bad ddcprobe output (diff)
downloadcore-bff04a5ae648fac46e53a123e3a840bf0c6d59d8.tar.gz
core-bff04a5ae648fac46e53a123e3a840bf0c6d59d8.tar.xz
core-bff04a5ae648fac46e53a123e3a840bf0c6d59d8.zip
reboot after leaving debug shell in initrd, mount reordering for UnionFS
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@179 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r--initrd/initrd-stuff/etc/functions11
1 files changed, 10 insertions, 1 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions
index 50c6211c..2f2e3c0c 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>, 08-04-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 11-04-2006
# Felix Endres, 21-03-2006
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
@@ -56,6 +56,9 @@ if [ -n "$2" ] ; then
else
echo -e "${error_msg}${e_msg}${error_shell}"
/bin/sh
+ echo "Rebooting now ..."
+ usleep 5
+ echo "b" > /proc/sysrq_trigger
fi
}
msg () {
@@ -70,6 +73,12 @@ while [ $count -gt 0 ] ; do count=`expr $count \- 1` ; done
return 0
}
#######################################################################
+# (re)generate dynamic linked libraries cache from /etc/ld.so.conf
+ldcfg () {
+[ -z "${NOLDSC}" ] && echo "$init_ldcfg" && ldconfig /tmp/ld.so.cache &
+}
+
+#######################################################################
# load a certain module - name of module with path in argument one, the
# error message in second argument
loadmod () {