]> git.pld-linux.org Git - packages/fbset.git/commitdiff
- added trying to load module in second place
authorfilon <filon@sokrates.mimuw.edu.pl>
Wed, 7 Nov 2001 09:34:58 +0000 (09:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fbset.init -> 1.5

fbset.init

index 44352519d8d864037aa5667dbfa33ae6bd08b682..72af2160b6a9de6416ab31b107f5fbd5e2e89602 100644 (file)
@@ -19,6 +19,15 @@ if [ -f /etc/sysconfig/fbset ]; then
        . /etc/sysconfig/fbset
 fi
 
+function try_load
+{
+       if [ -n "${FBMODULE}" ]; then
+               _modprobe single $FBMODULE
+       else
+               exit 0
+       fi
+}
+
 # See how we were called.
 case "$1" in
   start)
@@ -26,15 +35,12 @@ case "$1" in
        if [ ! -f /var/lock/subsys/fbset ]; then
                # Check if we have framebuffer in kernel.
                if [ -f /proc/fb ]; then
+                       echo a
                        # /proc files show as files with size=0, this is a workaround.
-                       cat /proc/fb | grep -q "." || exit 0
+                       cat /proc/fb | grep -q "." || try_load
                else
                        # if not, then try to load specified kernel module
-                       if [ -n "${FBMODULE}" ]; then
-                           _modprobe single $FBMODULE
-                       else
-                           exit 0
-                       fi
+                       try_load
                fi
 
                if [ -n "${FBMODE_default}" ]; then
This page took 0.083521 seconds and 4 git commands to generate.