Skip to content

Commit 3849981

Browse files
committed
plus output of switchstatus
1 parent e91a102 commit 3849981

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gluon-banner/files/etc/profile.gluon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export VPNon="'0'"
2929
[ "$(uci show|grep gluon.mesh_vpn.enabled|cut -d"=" -f2)" == "'1'" ] && export VPNon="'1'"
3030
[ "$(uci show|grep tunneldigger.mesh_vpn.enabled|cut -d"=" -f2)" == "'1'" ] && export VPNon="'1'"
3131
echo MoL.off=$MoLoff MoW.off=$MoWoff LAN=$ifLAN WAN=$ifWAN LANCLI=$lanCLI CLI=$ifCLI
32+
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')
3233
echo "########################################"
3334
([ "$VPNon" == "'1'" ] && [ "$MoWoff" == "'0'" ]) && echo ALARM! MoW-VPN-Konflikt?
3435
([ "$MoLoff" == "'0'" ] && [ "$ifCLI" == "$ifLAN" ]) && echo ALARM! MoL-CLI-Konflikt?

0 commit comments

Comments
 (0)