You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
298 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006 OpenWrt.org
  3. START=49
  4. BIN=htpdate
  5. DEFAULT=/etc/default/$BIN
  6. RUN_D=/var/run
  7. PID_F=$RUN_D/$BIN.pid
  8. start() {
  9. [ -f $DEFAULT ] && . $DEFAULT
  10. mkdir -p $RUN_D
  11. $BIN -l -s -t $OPTIONS && $BIN -D $OPTIONS
  12. }
  13. stop() {
  14. [ -f $PID_F ] && kill $(cat $PID_F)
  15. }