Make "/etc/rc.d/syscons start" correctly reload screensaver settings.
The code looks for all the loaded screensaver modules, tries to kldunload them, and only loads the new one if kldstat's output shows that there aren't any left. However, the regexp looking for modules to unload was still searching according to the the old naming scheme, splash_<name>.ko, instead of <name>_saver.ko. MFC after: 3 days
This commit is contained in:
parent
94c4c2a79b
commit
722e1ccb03
@ -210,7 +210,7 @@ syscons_start()
|
||||
;;
|
||||
*)
|
||||
echo -n ' screensaver'
|
||||
for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do
|
||||
for i in `kldstat | awk '$5 ~ "_saver\.ko$" { print $5 }'`; do
|
||||
kldunload ${i}
|
||||
done
|
||||
load_kld -e _saver ${saver}_saver
|
||||
|
Loading…
x
Reference in New Issue
Block a user