This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Check user name and ask for password | |
| [ "$UID" -eq 0 ] || exec sudo "$0" "$@" | |
| # Check if Jellyfin is inactive and start it | |
| sudo systemctl status jellyfin | grep 'inactive' > /dev/null 2>&1 | |
| if [ $? != 0 ] | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check user name and ask for password | |
| [ "$UID" -eq 0 ] || exec sudo "$0" "$@" | |
| sudo efibootmgr -n 0003 # Windows is Boot0003 | |
| reboot # or maybe suspend to disk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| if [ $1 = "enable" -o $1 = "disable" ]; then | |
| sh << EOF | nc 192.168.1.1 23 ## router's IP | |
| #sh << EOF | telnet 192.168.1.1 # using telnet, instead of netcat | |
| sleep 1 | |
| echo user ## router's telnet user | |
| sleep 1 | |
| echo password ## router's telnet password | |
| sleep 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Configuration for Thrustmaster GP XID | |
| [xboxdrv] | |
| silent = true | |
| device-name = "Thrustmaster GP XID" | |
| mimic-xpad = true | |
| force-feedback = 1 | |
| [xboxdrv-daemon] | |
| dbus = disabled |