aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/init.d/dhcpcd
blob: 342707a39f72b704b8f1d06dda23e9dcd1278ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
. /lib/lsb/init-functions

case "${1}" in
   start)
      log_info_msg "Starting dhcpcd..."
      start_daemon /sbin/dhcpcd
      evaluate_retval
      ;;

   stop)
      log_info_msg "Stopping dhcpcd..."
      killproc /sbin/dhcpcd
      evaluate_retval
      ;;

   restart)
      ${0} stop
      sleep 1
      ${0} start
      ;;

   *)
      echo "Usage: ${0} {start|stop|restart}"
      exit 1
      ;;
esac

exit 0