[BACK]Return to dhcpcd CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

Annotation of src/etc/rc.d/dhcpcd, Revision 1.5

1.1       roy         1: #!/bin/sh
                      2:
1.5     ! roy         3: # $NetBSD: $
        !             4:
1.1       roy         5: # PROVIDE: dhcpcd
                      6: # REQUIRE: network mountcritlocal
                      7: # BEFORE:  NETWORKING
                      8:
                      9: $_rc_subr_loaded . /etc/rc.subr
                     10:
                     11: name=dhcpcd
                     12: rcvar=$name
                     13: command=/sbin/$name
1.3       khorben    14: extra_commands="reload"
1.1       roy        15:
                     16: load_rc_config $name
1.2       roy        17:
1.5     ! roy        18: # Work out what pidfile dhcpcd will use based on flags
1.2       roy        19: if [ -n "$flags" ]; then
                     20:        myflags=$flags
                     21: else
                     22:        eval myflags=\$${name}_flags
                     23: fi
1.5     ! roy        24: pidfile=$(eval $command -P $myflags 2>/dev/null)
        !            25: : ${pidfile:=/var/run/$name.pid}
        !            26: unset myflags
1.2       roy        27:
1.1       roy        28: run_rc_command "$1"

CVSweb <webmaster@jp.NetBSD.org>