This file contains 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
APPS_MOUNTED_PATH=`nvram get apps_mounted_path` | |
APPS_INSTALL_FOLDER=`nvram get apps_install_folder` | |
APPS_INSTALL_PATH=$APPS_MOUNTED_PATH/$APPS_INSTALL_FOLDER | |
case "$1" in | |
start|force-reload|restart) | |
killall -SIGTERM reroutedns | |
cd /opt/bin | |
./reroutedns & | |
;; |
This file contains 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 | |
case "$1" in | |
on) /sbin/iptables -P INPUT DROP | |
echo "Firewall has been turned on, incoming connections are no longer accepted." | |
shift;; | |
off) /sbin/iptables -P INPUT ACCEPT | |
echo "Firewall has been turned off, incoming connections are now accepted." | |
shift;; | |
esac |
This file contains 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
#!/usr/bin/env bash | |
## | |
## Volume control script for PulseAudio and crouton chromebooks | |
## | |
## https://github.com/dnschneid/crouton/wiki/Keyboard | |
## | |
## v1.0: Initial release | |
## v1.1: Simplified mute toggle | |
## v1.2: Fixed (harmless) error that occured when capping max volume |