mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Support the very common "./rc_script.sh restart".
This commit is contained in:
parent
7dc9c23fdd
commit
cb0a86a6c9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116866
1 changed files with 9 additions and 2 deletions
|
@ -1,8 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
case $(dirname $0) in
|
||||
.)
|
||||
PREFIX=$(pwd)
|
||||
;;
|
||||
*)
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
args="${PREFIX}/etc/ncftpd/general.cf ${PREFIX}/etc/ncftpd/domain.cf"
|
||||
|
|
Loading…
Add table
Reference in a new issue