watchdog
This commit is contained in:
1 parent
e7a9e0316e
commit
2617407d18
3 files changed
+93
-19
No files matched your search
@@ -57,6 +57,32 @@ ExecStart=/home/theUser/SwordWatchdog/watchdog.py
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
## WiFi Power
|
||||
|
||||
```sh
|
||||
sudo nano /etc/systemd/system/wifi-txpower.service
|
||||
# ..
|
||||
sudo systemctl enable wifi-txpower.service
|
||||
sudo systemctl start wifi-txpower.service
|
||||
```
|
||||
|
||||
```sh
|
||||
[Unit]
|
||||
Description=Set WiFi TX Power limit to prevent overheating
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# Wait 15 seconds after network connects so the network manager doesn't overwrite it
|
||||
ExecStartPre=/bin/sleep 15
|
||||
ExecStart=/sbin/iwconfig wlan0 txpower 20
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
Reference in new issue
Block a user