5 active
=$
( cat /var
/run
/rocknet
/active-interfaces
2>/dev
/null || true
)
8 echo "Usage $0 [ interface profile ] | [ profile ]"
13 for x
in ${active//,/ }; do
14 [ $
(( i
++ )) -eq 0 ] && echo "Deactivating current interfaces ..."
16 profile
=${x/*(/}; profile
=${profile%)}
20 echo "Activating specified profile/interfaces ..."