Loading

Paste #pdcptr7wn

  1. #!/bin/sh /etc/rc.common
  2. # /package/oscam/files/oscam.init
  3. # Copyright (C) 2011 OpenWrt.org
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7.  
  8.  
  9. START=85
  10.  
  11. start() {
  12.     logger "Starting Oscam"
  13.     [ -d /var/log/oscam ] || mkdir -p /var/log/oscam
  14.     /usr/bin/oscam -b
  15. }
  16.  
  17. stop() {
  18.     logger "Shutting down Oscam"
  19.     killall oscam
  20. }
  21.  
  22. restart() {
  23.     logger "Restart Oscam"
  24.     stop
  25.     start
  26. }
  27.