syscons (165389) | syscons (165683) |
---|---|
1#!/bin/sh - 2# 3# Copyright (c) 2000 The FreeBSD Project 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1#!/bin/sh - 2# 3# Copyright (c) 2000 The FreeBSD Project 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/etc/rc.d/syscons 165389 2006-12-20 12:59:50Z yar $ | 27# $FreeBSD: head/etc/rc.d/syscons 165683 2006-12-31 10:37:18Z yar $ |
28# 29 30# PROVIDE: syscons 31# REQUIRE: LOGIN 32# KEYWORD: nojail 33 34. /etc/rc.subr 35 --- 172 unchanged lines hidden (view full) --- 208 case ${saver} in 209 [Nn][Oo] | '') 210 ;; 211 *) 212 echo -n ' screensaver' 213 for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do 214 kldunload ${i} 215 done | 28# 29 30# PROVIDE: syscons 31# REQUIRE: LOGIN 32# KEYWORD: nojail 33 34. /etc/rc.subr 35 --- 172 unchanged lines hidden (view full) --- 208 case ${saver} in 209 [Nn][Oo] | '') 210 ;; 211 *) 212 echo -n ' screensaver' 213 for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do 214 kldunload ${i} 215 done |
216 kldstat -v | grep -q _saver || kldload ${saver}_saver | 216 load_kld -e _saver ${saver}_saver |
217 ;; 218 esac 219 220 # set this mode for all virtual screens 221 # 222 if [ -n "${allscreens_flags}" ]; then 223 echo -n ' allscreens' 224 for ttyv in /dev/ttyv*; do 225 vidcontrol ${allscreens_flags} < ${ttyv} > ${ttyv} 2>&1 226 done 227 fi 228 229 echo '.' 230} 231 232load_rc_config $name 233run_rc_command $* 234 | 217 ;; 218 esac 219 220 # set this mode for all virtual screens 221 # 222 if [ -n "${allscreens_flags}" ]; then 223 echo -n ' allscreens' 224 for ttyv in /dev/ttyv*; do 225 vidcontrol ${allscreens_flags} < ${ttyv} > ${ttyv} 2>&1 226 done 227 fi 228 229 echo '.' 230} 231 232load_rc_config $name 233run_rc_command $* 234 |