Skip to content

Commit

Permalink
Order umsortiert
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingomar Otter committed Oct 4, 2015
1 parent 19748bd commit 95f9031
Show file tree
Hide file tree
Showing 59 changed files with 132 additions and 0 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
132 changes: 132 additions & 0 deletions tools/gw-select.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
#!/bin/sh
##################################################################################
# Script um einem Node ein einzelnes Gateway zuzuweisen bzw. #
# die automatische Zuweisung wieder zu aktivieren. #
# #
# Nicht reboot-fest! #
# #
# Aufruf: gw-select.sh fanlin|commander|fusselkater|padad0x|sense|kgbvax01|default #
##################################################################################


fanlin_only()
{
uci set fastd.mesh_vpn_backbone_peer_fanlin.enabled=1
uci set fastd.mesh_vpn_backbone_peer_commander1024.enabled=0
uci set fastd.mesh_vpn_backbone_peer_fusselkater.enabled=0
uci set fastd.mesh_vpn_backbone_peer_parad0x.enabled=0
uci set fastd.mesh_vpn_backbone_peer_sense.enabled=0
uci set fastd.mesh_vpn_backbone_peer_kgbvax01.enabled=0
}

commander1024_only()
{
uci set fastd.mesh_vpn_backbone_peer_fanlin.enabled=0
uci set fastd.mesh_vpn_backbone_peer_commander1024.enabled=1
uci set fastd.mesh_vpn_backbone_peer_fusselkater.enabled=0
uci set fastd.mesh_vpn_backbone_peer_parad0x.enabled=0
uci set fastd.mesh_vpn_backbone_peer_sense.enabled=0
uci set fastd.mesh_vpn_backbone_peer_kgbvax01.enabled=0
}

fusselkater_only()
{
uci set fastd.mesh_vpn_backbone_peer_fanlin.enabled=0
uci set fastd.mesh_vpn_backbone_peer_commander1024.enabled=0
uci set fastd.mesh_vpn_backbone_peer_fusselkater.enabled=1
uci set fastd.mesh_vpn_backbone_peer_parad0x.enabled=0
uci set fastd.mesh_vpn_backbone_peer_sense.enabled=0
uci set fastd.mesh_vpn_backbone_peer_kgbvax01.enabled=0
}

parad0x_only()
{
uci set fastd.mesh_vpn_backbone_peer_fanlin.enabled=0
uci set fastd.mesh_vpn_backbone_peer_commander1024.enabled=0
uci set fastd.mesh_vpn_backbone_peer_fusselkater.enabled=0
uci set fastd.mesh_vpn_backbone_peer_parad0x.enabled=1
uci set fastd.mesh_vpn_backbone_peer_sense.enabled=0
uci set fastd.mesh_vpn_backbone_peer_kgbvax01.enabled=0
}

sense_only()
{
uci set fastd.mesh_vpn_backbone_peer_fanlin.enabled=0
uci set fastd.mesh_vpn_backbone_peer_commander1024.enabled=0
uci set fastd.mesh_vpn_backbone_peer_fusselkater.enabled=0
uci set fastd.mesh_vpn_backbone_peer_parad0x.enabled=0
uci set fastd.mesh_vpn_backbone_peer_sense.enabled=1
uci set fastd.mesh_vpn_backbone_peer_kgbvax01.enabled=0
}

kgbvax01_only()
{
uci set fastd.mesh_vpn_backbone_peer_fanlin.enabled=0
uci set fastd.mesh_vpn_backbone_peer_commander1024.enabled=0
uci set fastd.mesh_vpn_backbone_peer_fusselkater.enabled=0
uci set fastd.mesh_vpn_backbone_peer_parad0x.enabled=0
uci set fastd.mesh_vpn_backbone_peer_sense.enabled=0
uci set fastd.mesh_vpn_backbone_peer_kgbvax01.enabled=1
}

default()
{
uci set fastd.mesh_vpn_backbone_peer_fanlin.enabled=1
uci set fastd.mesh_vpn_backbone_peer_commander1024.enabled=1
uci set fastd.mesh_vpn_backbone_peer_fusselkater.enabled=1
uci set fastd.mesh_vpn_backbone_peer_parad0x.enabled=1
uci set fastd.mesh_vpn_backbone_peer_sense.enabled=1
uci set fastd.mesh_vpn_backbone_peer_kgbvax01.enabled=1
}

recycle_fastd()
{
echo "fastd wird neu gestartet."
/etc/init.d/fastd restart
echo "Gewuenschte Konfiguration ist aktiviert!"
}
#############################################
# </Funktionsdefinition> #
#############################################

case "$1" in
fanlin)
fanlin_only
recycle_fastd
;;

commander)
commander1024_only
recycle_fastd
;;

fusselkater)
fusselkater_only
recycle_fastd
;;

parad0x)
parad0x_only
recycle_fastd
;;

sense)
sense_only
recycle_fastd
;;

kgbvax01)
kgbvax01_only
recycle_fastd
;;

default)
default
recycle_fastd
;;

*)
echo "Usage: $0 {fanlin|commander|fusselkater|parad0x|sense|kgbvax01|default}"
exit 1
esac
exit 0

0 comments on commit 95f9031

Please sign in to comment.