summaryrefslogtreecommitdiff
path: root/src/op_mode/connect_disconnect.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-23 06:12:36 +0200
committerGitHub <noreply@github.com>2024-04-23 06:12:36 +0200
commitd7e0561e67296d5fab910d4281893c48ecda040c (patch)
treed0e239a8b06800e0726ab108d0750dcd9e047cec /src/op_mode/connect_disconnect.py
parentd22560b942cb4d6a9b71aaa9d0b16f8ace8c26b1 (diff)
parent19e0d3b74f66e082c3f131b9044e7ca2371b1d85 (diff)
downloadvyos-1x-d7e0561e67296d5fab910d4281893c48ecda040c.tar.gz
vyos-1x-d7e0561e67296d5fab910d4281893c48ecda040c.zip
Merge pull request #3347 from Giggum/vyos-1x_T6261
connect_disconnect: T6261: correction to typo in check_ppp_running
Diffstat (limited to 'src/op_mode/connect_disconnect.py')
-rwxr-xr-xsrc/op_mode/connect_disconnect.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/connect_disconnect.py b/src/op_mode/connect_disconnect.py
index bd02dc6ea..373f9e953 100755
--- a/src/op_mode/connect_disconnect.py
+++ b/src/op_mode/connect_disconnect.py
@@ -48,7 +48,7 @@ def connect(interface):
if os.path.isdir(f'/sys/class/net/{interface}'):
print(f'Interface {interface}: already connected!')
elif check_ppp_running(interface):
- print(f'Interface {interface}: connection is beeing established!')
+ print(f'Interface {interface}: connection is being established!')
else:
print(f'Interface {interface}: connecting...')
call(f'systemctl restart ppp@{interface}.service')
@@ -58,7 +58,7 @@ def connect(interface):
else:
call(f'VYOS_TAGNODE_VALUE={interface} /usr/libexec/vyos/conf_mode/interfaces_wwan.py')
else:
- print(f'Unknown interface {interface}, can not connect. Aborting!')
+ print(f'Unknown interface {interface}, cannot connect. Aborting!')
# Reaply QoS configuration
config = ConfigTreeQuery()
@@ -90,7 +90,7 @@ def disconnect(interface):
modem = interface.lstrip('wwan')
call(f'mmcli --modem {modem} --simple-disconnect', stdout=DEVNULL)
else:
- print(f'Unknown interface {interface}, can not disconnect. Aborting!')
+ print(f'Unknown interface {interface}, cannot disconnect. Aborting!')
def main():
parser = argparse.ArgumentParser()