Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# detect, of we have already added an alias,
# if not, do it:
. /lib/
config_load network
local config="$1"
local ip="$2"
test "$( uci get network.$config.ipaddr )" = "$ip" && X=true
config_foreach alread_added alias
[ $X ] && add_alias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment