Skip to content

Commit

Permalink
plus output of switchstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
Adorfer committed Jul 19, 2021
1 parent e91a102 commit 3849981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gluon-banner/files/etc/profile.gluon
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export VPNon="'0'"
[ "$(uci show|grep gluon.mesh_vpn.enabled|cut -d"=" -f2)" == "'1'" ] && export VPNon="'1'"
[ "$(uci show|grep tunneldigger.mesh_vpn.enabled|cut -d"=" -f2)" == "'1'" ] && export VPNon="'1'"
echo MoL.off=$MoLoff MoW.off=$MoWoff LAN=$ifLAN WAN=$ifWAN LANCLI=$lanCLI CLI=$ifCLI
echo switch: $(swconfig dev switch0 show | grep 'link:'|sed -e 's/link://g' -e 's/port/p/g' -e 's/speed://g' -e 's/baseT//g' -e 's/ full-duplex/fdx/g' -e 's/ half-duplex/hdx/g' -e 's/flow/f/g' -e 's/\t//g' -e 's/$/;/g' -e 's/ ;/;/g')
echo "########################################"
([ "$VPNon" == "'1'" ] && [ "$MoWoff" == "'0'" ]) && echo ALARM! MoW-VPN-Konflikt?
([ "$MoLoff" == "'0'" ] && [ "$ifCLI" == "$ifLAN" ]) && echo ALARM! MoL-CLI-Konflikt?
Expand Down

0 comments on commit 3849981

Please sign in to comment.