Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d - Remove previous hack; rc.subr warns about the var...



details:   https://anonhg.NetBSD.org/src/rev/22ee67b57ec1
branches:  trunk
changeset: 522097:22ee67b57ec1
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Feb 11 13:55:42 2002 +0000

description:
- Remove previous hack; rc.subr warns about the variable not being set
  for a reason, which is usually ``your /etc/defaults/rc.conf is not up
  to date''.
- Consolidate `rm's into one line.

diffstat:

 etc/rc.d/ipfs |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (33 lines):

diff -r 90f0c2830f65 -r 22ee67b57ec1 etc/rc.d/ipfs
--- a/etc/rc.d/ipfs     Mon Feb 11 13:50:18 2002 +0000
+++ b/etc/rc.d/ipfs     Mon Feb 11 13:55:42 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: ipfs,v 1.2 2002/02/11 13:39:14 martti Exp $
+# $NetBSD: ipfs,v 1.3 2002/02/11 13:55:42 lukem Exp $
 #
 
 # PROVIDE: ipfs
@@ -18,8 +18,7 @@
 {
        if [ -r /var/db/ipf/ipstate.ipf -a -r /var/db/ipf/ipnat.ipf ]; then
                /usr/sbin/ipfs -R ${ipfs_flags}
-               rm -f /var/db/ipf/ipstate.ipf
-               rm -f /var/db/ipf/ipnat.ipf
+               rm -f /var/db/ipf/ipstate.ipf /var/db/ipf/ipnat.ipf
        fi
 }
 
@@ -34,10 +33,4 @@
 }
 
 load_rc_config $name
-case "${ipfs}" in
-       [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
-               run_rc_command "$1"
-               ;;
-       *)
-               ;;
-esac
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index