2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # T2 SDE: package/*/rocknet/ifswitch.sh
4 # Copyright (C) 2022 The T2 SDE Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
15 active
=$
( cat /var
/run
/rocknet
/active-interfaces
2>/dev
/null || true
)
18 echo "Usage $0 [ interface profile ] | [ profile ]"
23 for x
in ${active//,/ }; do
24 [ $
(( i
++ )) -eq 0 ] && echo "Deactivating current interfaces ..."
26 profile
=${x/*(/} profile
=${profile%)}
30 echo "Activating specified profile/interfaces ..."