diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-01 21:19:11 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-01 21:19:11 +0100 |
commit | f2463372c9e35cf640f1b0ccede0314a239b0d25 (patch) | |
tree | d0136965860008a32e72bfac7442bc35d694758c /package/rdate | |
parent | 72a7d18f2fa0330212333dd95c18f2278c021cee (diff) |
fix startup scripts, when variable is not set in /etc/rc.conf
Diffstat (limited to 'package/rdate')
-rw-r--r-- | package/rdate/files/rdate.init | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/rdate/files/rdate.init b/package/rdate/files/rdate.init index 988028f59..34bcea663 100644 --- a/package/rdate/files/rdate.init +++ b/package/rdate/files/rdate.init @@ -1,12 +1,11 @@ #!/bin/sh #PKG rdate #INIT 54 - . /etc/rc.conf case $1 in autostart|start|restart) - [[ $rdate_flags = NO ]] && exit 0 + test x"${rdate:-NO}" = x"NO" && exit 0 rdate $rdate_flags ;; autostop|stop) |