Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2020
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. # SVN : $Id: cmh 8758 2013-07-31 08:59:49Z florin $
  2.  
  3. #Copyright (C) 2008 Mi Casa Verde, Inc., a Nevada Corporation
  4. # www.micasaverde.com
  5. # 1 - 702 - 4879770 / 866 - 966 - casa
  6. #This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License.
  7. #This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  8. #without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9.  
  10. START=995
  11. STOP=45
  12.  
  13. start() {
  14. logger -t "cmh[$$]" "Starting LuaUPnP"
  15. #be sure we have required identification files before starting MiOS Core
  16. [ ! -f /proc/diag/model ] && insmod diag 2>/dev/null
  17.  
  18. /usr/bin/Start_cmh.sh >/dev/null &>/dev/null </dev/null &
  19. sleep 2
  20. }
  21.  
  22. stop() {
  23. logger -t "cmh[$$]" "Stoping LuaUPnP"
  24. /usr/bin/Stop_cmh.sh
  25. }
  26.  
  27. restart() {
  28. stop
  29. wait $!
  30. start
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement