From 2c6b33d3fcb88551d85c740288a916a1be76a8d3 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 28 Mar 2020 18:49:45 +0100 Subject: wwan: T1988: migrate operational mode commands --- .../show-interfaces-wirelessmodem.xml | 45 ++++++++++++++++++++++ src/completion/list_wlm_peers.sh | 6 +++ 2 files changed, 51 insertions(+) create mode 100644 op-mode-definitions/show-interfaces-wirelessmodem.xml create mode 100755 src/completion/list_wlm_peers.sh diff --git a/op-mode-definitions/show-interfaces-wirelessmodem.xml b/op-mode-definitions/show-interfaces-wirelessmodem.xml new file mode 100644 index 000000000..681f54f3d --- /dev/null +++ b/op-mode-definitions/show-interfaces-wirelessmodem.xml @@ -0,0 +1,45 @@ + + + + + + + + + Show Wireless Modem (WWAN) interface information + + + + + ${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4" + + + + Show PPPoE logs + + cat /var/log/vyatta/ppp_$4.log + + + + Watch PPPoE logs + + tail --follow=name /var/log/vyatta/ppp_$4.log + + + + + + Show specified wirelessmodem interface statistics + + + + + /usr/sbin/pppstats $4 + + + + + + + + diff --git a/src/completion/list_wlm_peers.sh b/src/completion/list_wlm_peers.sh new file mode 100755 index 000000000..12dd00650 --- /dev/null +++ b/src/completion/list_wlm_peers.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -d /etc/ppp/peers ]; then + cd /etc/ppp/peers + ls wlm* +fi -- cgit v1.2.3