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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import subprocess | |
if len(sys.argv) < 2: | |
print("Usage: nmcli-toggle.py connection_id") | |
sys.exit() | |
conn_id = sys.argv[1] | |
active = subprocess.check_output(['nmcli', 'connection', 'show', '--active']) | |
up_down = ('up', 'down')[conn_id in active] |
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 | |
cd /usr/lib/lua/luci/sys/zoneinfo | |
for f in tzdata.lua tzoffset.lua | |
do | |
mv $f $f.bak | |
wget -nv --no-check-certificate https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/luasrc/sys/zoneinfo/$f | |
done |
NewerOlder