Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # /etc/rc.local.shutdown: Local shutdown script.
- #
- . /etc/rc.conf
- . /etc/rc.d/functions
- RUNLEVEL=`runlevel`
- FBMODULE="uvesafb"
- if [ -e "/var/run/daemons/kexec" -a "${RUNLEVEL:2:2}" = "6" ]; then
- stat_busy "Stopping framebuffer"
- if [ -e "/sys/class/vtconsole/vtcon1/bind" ]; then
- echo 0 > /sys/class/vtconsole/vtcon1/bind
- VTCONBIND=`cat /sys/class/vtconsole/vtcon1/bind`
- if [ $VTCONBIND = "0" ]; then
- stat_done
- else
- stat_fail
- fi
- else
- stat_done
- fi
- lsmod | grep $FBMODULE >& /dev/null
- if [ $? -eq 0 ]; then
- rmmod $FBMODULE >& /dev/null
- if [ $? -ne 0 ]; then
- rmmod -f $FBMODULE
- fi
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement