diff options
author | Doug Barton <dougb@FreeBSD.org> | 2012-01-14 08:57:23 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2012-01-14 08:57:23 +0000 |
commit | 83eb2c37009874672764765ec3bf3b59286c7391 (patch) | |
tree | a956ace1a4a1e10876d4c36f12af02bc9df6cb29 /sysutils/diskprep/files/diskprep.in | |
parent | 3c1484f2613137d7eaba8577f6d580c5532ac912 (diff) | |
download | ports-83eb2c37009874672764765ec3bf3b59286c7391.tar.gz ports-83eb2c37009874672764765ec3bf3b59286c7391.zip |
Notes
Diffstat (limited to 'sysutils/diskprep/files/diskprep.in')
-rw-r--r-- | sysutils/diskprep/files/diskprep.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sysutils/diskprep/files/diskprep.in b/sysutils/diskprep/files/diskprep.in index d4419c0df00c..c41d01e67705 100644 --- a/sysutils/diskprep/files/diskprep.in +++ b/sysutils/diskprep/files/diskprep.in @@ -1,6 +1,8 @@ #!/bin/sh # $Aero: util/diskprep/diskprep.rc,v 1.1 2005/08/06 00:50:59 brooks Exp $ +# $FreeBSD$ +# # PROVIDE: diskprep # REQUIRE: disks # BEFORE: fsck localswap @@ -9,7 +11,12 @@ . /etc/rc.subr name="diskprep" -rc_var=`set_rcvar` +rcvar=diskprep_enable + +load_rc_config $name + +# Needs default value for _enable ?? + start_precmd="diskprep_prestart" stop_cmd=":" command="/usr/local/sbin/diskprep" @@ -32,6 +39,4 @@ diskprep_prestart() command_args="$command_args $diskprep_disk" } -load_rc_config $name - run_rc_command "$1" |