Update supernode
This commit is contained in:
parent
c525ccc8f3
commit
8e1e9d611c
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
help () {
|
help () {
|
||||||
echo "Supernode Settings:"
|
echo "Supernode Settings:"
|
||||||
echo "status | off | on | loadbalance_on | loadbalance_off | auto"
|
echo "status | off | on | auto"
|
||||||
}
|
}
|
||||||
|
|
||||||
status () {
|
status () {
|
||||||
@ -28,22 +28,15 @@ status () {
|
|||||||
|
|
||||||
off () {
|
off () {
|
||||||
echo 0 > /etc/supernode-status/supernode.mode
|
echo 0 > /etc/supernode-status/supernode.mode
|
||||||
echo "Supernode Deaktiviert"
|
echo 0 > /etc/supernode-status/loadbalancing.mode
|
||||||
|
|
||||||
|
echo "Supernode Aus"
|
||||||
}
|
}
|
||||||
|
|
||||||
on () {
|
on () {
|
||||||
echo 1 > /etc/supernode-status/supernode.mode
|
echo 1 > /etc/supernode-status/supernode.mode
|
||||||
echo "Supernode Aktiviert"
|
|
||||||
}
|
|
||||||
|
|
||||||
loadbalance_on () {
|
|
||||||
echo 1 > /etc/supernode-status/loadbalancing.mode
|
|
||||||
echo "Loadbalance on"
|
|
||||||
}
|
|
||||||
|
|
||||||
loadbalance_off () {
|
|
||||||
echo 0 > /etc/supernode-status/loadbalancing.mode
|
echo 0 > /etc/supernode-status/loadbalancing.mode
|
||||||
echo "Loadbalance off"
|
echo "Supernode Dauer-An"
|
||||||
}
|
}
|
||||||
|
|
||||||
auto () {
|
auto () {
|
||||||
|
Loading…
Reference in New Issue
Block a user