summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-07-04 01:22:21 +0200
committerDirk von Suchodoletz2006-07-04 01:22:21 +0200
commit6c3c818766288b204a55edbfae08cd450dbd6b77 (patch)
treeee7b8634aea1aced0b2ca5d5150ee07f00741f5d /initrd/initrd-stuff/etc/functions
parentEnhanced debugging settings (see DebugLevel), some fixes for the use (diff)
downloadcore-6c3c818766288b204a55edbfae08cd450dbd6b77.tar.gz
core-6c3c818766288b204a55edbfae08cd450dbd6b77.tar.xz
core-6c3c818766288b204a55edbfae08cd450dbd6b77.zip
Simplified screenres a bit for busybox compatibility (all lowercase in
file) ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@268 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r--initrd/initrd-stuff/etc/functions28
1 files changed, 18 insertions, 10 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions
index e48d52bc..a19b3eab 100644
--- a/initrd/initrd-stuff/etc/functions
+++ b/initrd/initrd-stuff/etc/functions
@@ -100,7 +100,7 @@ echo -e "$1 info: $2"
# the first argument gotten until zero
usleep () {
if [ -x /bin/usleep ]; then
- /bin/usleep `expr $1 \* 80000`
+ /bin/usleep `expr $1 \* 60000`
else
local count=`expr $1 \* 10`
while [ $count -gt 0 ] ; do count=`expr $count \- 1` ; done
@@ -741,6 +741,23 @@ for i in boot.ld ${D_INITSCRIPTS}; do
ln -sf /etc${D_INITDIR}/$i /mnt/etc/${D_INITBOOTD}/K${revcnt}$i
done
}
+#######################################################################
+# find out if prerequisites for special X server modules are met
+# incomplete
+check_glx () {
+case "${XMODULE}" in
+ radeon)
+ # check ${XDESC}/ hwsetup.info device string in Cards file and then
+ # for needed components
+ test -f /lib/modules/${KERNEL}/kernel/drivers/char/drm/fglrx.ko && \
+ test -f /usr/X11R6/lib/modules/drivers/fglrx_drv.o
+ ;;
+ nv)
+ #
+ # test -f /usr/X11R6/lib/modules/drivers/nvidia_drv.o
+ ;;
+esac
+}
#######################################################################
# dummy functions
@@ -750,15 +767,6 @@ displayvars (){
:
}
-# AUS SuSE-9.3
-
-# linking runlevel scripts
-rllinker () {
- :
-}
-
-# group of functions for the normal runlevels - first parameter is start
-# second stop
# function for ntp configuration
config_ntp () {
: