From 83eb2c37009874672764765ec3bf3b59286c7391 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Sat, 14 Jan 2012 08:57:23 +0000 Subject: In the rc.d scripts, change assignments to rcvar to use the literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other. --- net/mpd5/files/mpd5.sh.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'net/mpd5') diff --git a/net/mpd5/files/mpd5.sh.in b/net/mpd5/files/mpd5.sh.in index 01297e920d80..5654f72f1842 100644 --- a/net/mpd5/files/mpd5.sh.in +++ b/net/mpd5/files/mpd5.sh.in @@ -1,13 +1,11 @@ #!/bin/sh -# + # $FreeBSD$ # - # PROVIDE: mpd # REQUIRE: SERVERS # BEFORE: DAEMON # KEYWORD: shutdown - # # Add the following lines to /etc/rc.conf to enable mpd5: # mpd_enable (bool): Set to "NO" by default. @@ -16,12 +14,11 @@ # Extra flags passed to start command. # # See mpd5(8) for flags. -# . /etc/rc.subr name="mpd5" -rcvar=`set_rcvar mpd` +rcvar=mpd_enable load_rc_config ${name} -- cgit v1.2.3