Skip to content

Commit 0de9664

Browse files
chewittgitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent bbf3259 commit 0de9664

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configuration/useful_scripts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This script uses the `kodi-send` tool to prevent Kodi from shutting down if ther
66

77
Create `/storage/.config/prevent_idle.sh` with the following content:
88

9-
```text
9+
```bash
1010
#!/bin/sh
1111

1212
IDLE_SHUTDOWN_ALLOWED_LAST_STATE=-1
@@ -35,7 +35,7 @@ done
3535

3636
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.
3737

38-
```text
38+
```bash
3939
(
4040
/usr/bin/bash /storage/.config/prevent_idle.sh
4141
)&
@@ -47,7 +47,7 @@ This script identifies your public IP address and updates a [https://dynu.com](h
4747

4848
Create `/storage/.config/dynu_update.sh` with the following content:
4949

50-
```text
50+
```bash
5151
#!/bin/sh
5252

5353
DYNU_USERNAME="username"
@@ -93,7 +93,7 @@ done
9393

9494
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.
9595

96-
```text
96+
```bash
9797
(
9898
/usr/bin/bash /storage/.config/dynu_update.sh
9999
)&

0 commit comments

Comments
 (0)