summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-24 10:17:39 +0200
committerGitHub <noreply@github.com>2024-04-24 10:17:39 +0200
commita5f847beab098f6d316f7c925509c7aa9a76e21f (patch)
treecffb2ec8949318c1c3b603f1d4aaec0cd233a9a7 /src/op_mode
parent41663efaba26c5369b70a40d638dfa7f7754701e (diff)
parent6a09890a5ba2c424aa80cac4cc0bdd3386b01fdd (diff)
downloadvyos-1x-a5f847beab098f6d316f7c925509c7aa9a76e21f.tar.gz
vyos-1x-a5f847beab098f6d316f7c925509c7aa9a76e21f.zip
Merge pull request #3349 from vyos/mergify/bp/equuleus/pr-3347
connect_disconnect: T6261: correction to typo in check_ppp_running (backport #3347)
Diffstat (limited to 'src/op_mode')
-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 ffc574362..82a02730a 100755
--- a/src/op_mode/connect_disconnect.py
+++ b/src/op_mode/connect_disconnect.py
@@ -46,7 +46,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')
@@ -56,7 +56,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!')
def disconnect(interface):
""" Disconnect dialer interface """
@@ -77,7 +77,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()