You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configuration/useful_scripts.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This script uses the `kodi-send` tool to prevent Kodi from shutting down if ther
6
6
7
7
Create `/storage/.config/prevent_idle.sh` with the following content:
8
8
9
-
```text
9
+
```bash
10
10
#!/bin/sh
11
11
12
12
IDLE_SHUTDOWN_ALLOWED_LAST_STATE=-1
@@ -35,7 +35,7 @@ done
35
35
36
36
Call the script from `/storage/.config/autostart.sh` so it runs as a background task. It will continue to monitor the state of connections until the device is halted.
37
37
38
-
```text
38
+
```bash
39
39
(
40
40
/usr/bin/bash /storage/.config/prevent_idle.sh
41
41
)&
@@ -47,7 +47,7 @@ This script identifies your public IP address and updates a [https://dynu.com](h
47
47
48
48
Create `/storage/.config/dynu_update.sh` with the following content:
49
49
50
-
```text
50
+
```bash
51
51
#!/bin/sh
52
52
53
53
DYNU_USERNAME="username"
@@ -93,7 +93,7 @@ done
93
93
94
94
Call the script from `/storage/.config/autostart.sh` so it runs as a background task. It will continue to monitor the state of connections until the device is halted.
0 commit comments