Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:hardware:watchdog [2020/10/15 06:34] – [Controlling the watchdog] vgaeteradocs:guide-user:hardware:watchdog [2021/11/01 11:39] – [USB watchdogs] vgaetera
Line 65: Line 65:
 This is a script that will generate a procd service to control one of such USB-serial watchdogs. This is a script that will generate a procd service to control one of such USB-serial watchdogs.
  
-<code bash usb_watchdog>+<code bash> 
 +cat << "EOF" > /etc/usb_watchdog
 #!/bin/sh #!/bin/sh
  
Line 112: Line 113:
  
 (install) (install)
-cat << "EOF" > /etc/init.d/usb_watchdog+cat << "EOI" > /etc/init.d/usb_watchdog
 #!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
  
Line 127: Line 128:
 } }
  
-stop_service() +stop_service() {
-{+
     /etc/usb_watchdog stop     /etc/usb_watchdog stop
 } }
-EOF+EOI
  
-cat << "EOF" > /lib/upgrade/keep.d/usb_watchdog+cat << "EOI" > /lib/upgrade/keep.d/usb_watchdog
 /etc/init.d/usb_watchdog /etc/init.d/usb_watchdog
 /etc/rc.d/ /etc/rc.d/
 /etc/usb_watchdog /etc/usb_watchdog
-EOF+EOI
  
 chmod +x /etc/init.d/usb_watchdog chmod +x /etc/init.d/usb_watchdog
Line 153: Line 153:
  
 esac esac
 +EOF
 +chmod +x /etc/usb_watchdog
 +/etc/usb_watchdog install
 </code> </code>
  
Line 158: Line 161:
  
 <code bash> <code bash>
-wget --no-check-certificate -O /etc/usb_watchdog "https://openwrt.org/_export/code/docs/guide-user/hardware/watchdog?codeblock=4+uclient-fetch -O usb-watchdog.sh "https://openwrt.org/_export/code/docs/guide-user/hardware/watchdog?codeblock=3
-chmod +x /etc/usb_watchdog +. ./usb-watchdog.sh
-/etc/usb_watchdog install+
 </code> </code>
  
  • Last modified: 2023/08/21 09:20
  • by vgaetera