Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:hardware:watchdog [2021/03/12 02:43] – [USB watchdogs] verbosity vgaetera | docs: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 << " | ||
| #!/bin/sh | #!/bin/sh | ||
| Line 112: | Line 113: | ||
| (install) | (install) | ||
| - | cat << "EOF" > / | + | cat << "EOI" > / |
| #!/bin/sh / | #!/bin/sh / | ||
| Line 127: | Line 128: | ||
| } | } | ||
| - | stop_service() | + | stop_service() { |
| - | { | + | |
| / | / | ||
| } | } | ||
| - | EOF | + | EOI |
| - | cat << "EOF" > / | + | cat << "EOI" > / |
| / | / | ||
| /etc/rc.d/ | /etc/rc.d/ | ||
| / | / | ||
| - | EOF | + | EOI |
| chmod +x / | chmod +x / | ||
| Line 153: | Line 153: | ||
| esac | esac | ||
| + | EOF | ||
| + | chmod +x / | ||
| + | / | ||
| </ | </ | ||
| Line 158: | Line 161: | ||
| <code bash> | <code bash> | ||
| - | opkg update | + | uclient-fetch -O usb-watchdog.sh |
| - | opkg install libustream-mbedtls | + | . ./usb-watchdog.sh |
| - | uclient-fetch -O / | + | |
| - | chmod +x /etc/ | + | |
| - | / | + | |
| </ | </ | ||