blob: b1627c28299794cc157c12d9ccb68e28ac25056f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /bin/bash
NETCTL=$(which netctl)
if [ -z "$NETCTL" ]
then
echo "netctl not found"
exit 1
fi
if [ $UID -ne 0 ]
then
echo "must be run as root"
exit 1
fi
$NETCTL stop-all
PROFILES=$($NETCTL list)
select profile in $PROFILES
do
[ -z "$profile" ] && exit 0
echo "starting profile $profile" && $NETCTL start $profile; break
done
|