Supernode Tool Update
This commit is contained in:
parent
0c1c3a3620
commit
00a715c1a7
@ -13,11 +13,9 @@ status () {
|
|||||||
if [ $supernode_status == 0 ]; then
|
if [ $supernode_status == 0 ]; then
|
||||||
echo "Supernode ist Offline"
|
echo "Supernode ist Offline"
|
||||||
elif [ $supernode_status == 1 ]; then
|
elif [ $supernode_status == 1 ]; then
|
||||||
echo "Supernode läuft (Loadbalancing)"
|
echo "Supernode läuft"
|
||||||
elif [ $supernode_status == 2 ]; then
|
elif [ $supernode_status == 2 ]; then
|
||||||
echo "Supernode läuft (Dauer-Ein)"
|
echo "Supernode läuft (Backup)"
|
||||||
elif [ $supernode_status == 3 ]; then
|
|
||||||
echo "Supernode Offline (Loadbalancing)"
|
|
||||||
fi
|
fi
|
||||||
for service in bird bird6 dhcpd radvd python named
|
for service in bird bird6 dhcpd radvd python named
|
||||||
do
|
do
|
||||||
@ -31,20 +29,16 @@ status () {
|
|||||||
|
|
||||||
off () {
|
off () {
|
||||||
echo 0 > /etc/supernode-status/supernode.mode
|
echo 0 > /etc/supernode-status/supernode.mode
|
||||||
echo 0 > /etc/supernode-status/loadbalancing.mode
|
|
||||||
|
|
||||||
echo "Supernode Aus"
|
echo "Supernode Aus"
|
||||||
}
|
}
|
||||||
|
|
||||||
on () {
|
on () {
|
||||||
echo 1 > /etc/supernode-status/supernode.mode
|
echo 1 > /etc/supernode-status/supernode.mode
|
||||||
echo 0 > /etc/supernode-status/loadbalancing.mode
|
echo "Supernode An"
|
||||||
echo "Supernode Dauer-An"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto () {
|
backup () {
|
||||||
echo 1 > /etc/supernode-status/loadbalancing.mode
|
echo 2 > /etc/supernode-status/supernode.mode
|
||||||
echo 1 > /etc/supernode-status/supernode.mode
|
echo "Supernode Aktiviert inkl. Backup"
|
||||||
echo "Supernode Aktiviert inkl. Loadbalance"
|
|
||||||
}
|
}
|
||||||
$1
|
$1
|
||||||
|
Loading…
Reference in New Issue
Block a user