Skip to content

Instantly share code, notes, and snippets.

@envieid0c
Forked from un-def/openwrt-update-tz.sh
Last active December 21, 2016 18:10
Show Gist options
  • Save envieid0c/f2795273113a9c509ad8a4ba37866ab7 to your computer and use it in GitHub Desktop.
Save envieid0c/f2795273113a9c509ad8a4ba37866ab7 to your computer and use it in GitHub Desktop.
Update OpenWrt timezones from github.com/openwrt/luci
#!/bin/sh
cd /usr/lib/lua/luci/sys/zoneinfo
mv tzdata.lua tzdata.lua.bak
mv tzoffset.lua tzoffset.bak
wget --no-check-certificate https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua
wget --no-check-certificate https://raw.githubusercontent.com/openwrt/luci/master/modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment