diff options
author | mux <mux@FreeBSD.org> | 2007-03-12 22:35:43 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2007-03-12 22:35:43 +0000 |
commit | 722e1ccb03c6caaf588dafad23686fe084ffa5ed (patch) | |
tree | 988be208989df30dc133786e89a32d8541699cae /etc/rc.d | |
parent | 94c4c2a79baa0f738b93a12258088cac0bc843a3 (diff) | |
download | FreeBSD-src-722e1ccb03c6caaf588dafad23686fe084ffa5ed.zip FreeBSD-src-722e1ccb03c6caaf588dafad23686fe084ffa5ed.tar.gz |
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
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/syscons | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/syscons b/etc/rc.d/syscons index 04accbb..9d43644 100644 --- a/etc/rc.d/syscons +++ b/etc/rc.d/syscons @@ -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 |