aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bsd-splash-changer
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-01-14 08:57:23 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-01-14 08:57:23 +0000
commit83eb2c37009874672764765ec3bf3b59286c7391 (patch)
treea956ace1a4a1e10876d4c36f12af02bc9df6cb29 /sysutils/bsd-splash-changer
parent3c1484f2613137d7eaba8577f6d580c5532ac912 (diff)
downloadports-83eb2c37009874672764765ec3bf3b59286c7391.tar.gz
ports-83eb2c37009874672764765ec3bf3b59286c7391.zip
Notes
Diffstat (limited to 'sysutils/bsd-splash-changer')
-rw-r--r--sysutils/bsd-splash-changer/files/change_splash.sh.in14
1 files changed, 6 insertions, 8 deletions
diff --git a/sysutils/bsd-splash-changer/files/change_splash.sh.in b/sysutils/bsd-splash-changer/files/change_splash.sh.in
index af3cb2e36610..f4a5122f69d7 100644
--- a/sysutils/bsd-splash-changer/files/change_splash.sh.in
+++ b/sysutils/bsd-splash-changer/files/change_splash.sh.in
@@ -1,6 +1,6 @@
#!/bin/sh
-#
-# /usr/local/etc/rc.d/change_splash.sh * mato [11-feb-2006]
+
+# $FreeBSD$
#
# PROVIDE: change_splash
# REQUIRE: mountcritremote
@@ -14,19 +14,20 @@
# Splash image file is randomly picked up from this directory.
# splash_changer_file (string): Defaults to "/boot/splash".
# This is where the image file is copied to.
-#
. /etc/rc.subr
name=change_splash
-rcvar=`set_rcvar splash_changer`
+rcvar=splash_changer_enable
-start_cmd=${name}_start
+load_rc_config $name
: ${splash_changer_enable="NO"}
: ${splash_changer_file="/boot/splash"}
: ${splash_changer_dir="%%DATADIR%%"}
+start_cmd=${name}_start
+
change_splash_start()
{
echo "Changing splash image."
@@ -65,7 +66,4 @@ change_splash_start()
debug "Boot splash image changed to $filename"
}
-load_rc_config $name
run_rc_command "$1"
-
-# done