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/ash | |
| # OpenWrt / LEDE script to fix default routes. | |
| if [ "$#" -ne 1 ]; then | |
| >&2 echo "usage: $0 interface [interface ...]" | |
| exit 1 | |
| fi | |
| for arg in "$@"; do |
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 | |
| # OpenWrt / LEDE hotplug script to add default routes correctly. | |
| # | |
| # Location "/etc/hotplug.d/iface/01-default-route". | |
| # | |
| # Fixed mwan3 "No default route in the main routing table" and | |
| # "WARNING: this interface has no default route in the main routing table!" for me. | |
| uci get "network.${INTERFACE}.gateway" > /dev/null 2>&1 || exit |
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
| ObservableArray = function(array) { | |
| if (array == null) array = []; | |
| if (!Array.isArray(array)) throw new TypeError('argument is not an array'); | |
| var listeners = []; | |
| this.toString = array.toString; | |
| this.listen = function(listener) { | |
| listeners.push(listener); |
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
| focustree = (function() { | |
| var entries = []; | |
| var currentFocus = []; | |
| function indexOf(array, element) { | |
| for (var i = 0; i < array.length; i++) { | |
| if (array[i] === element) return i; | |
| } | |
| return -1; |
NewerOlder