diff options
author | Ginko <152240782+Giggum@users.noreply.github.com> | 2024-04-22 21:42:13 -0400 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-23 04:14:25 +0000 |
commit | 6a09890a5ba2c424aa80cac4cc0bdd3386b01fdd (patch) | |
tree | cffb2ec8949318c1c3b603f1d4aaec0cd233a9a7 /src | |
parent | 41663efaba26c5369b70a40d638dfa7f7754701e (diff) | |
download | vyos-1x-6a09890a5ba2c424aa80cac4cc0bdd3386b01fdd.tar.gz vyos-1x-6a09890a5ba2c424aa80cac4cc0bdd3386b01fdd.zip |
connect_disconnect: T6261: correction to typo in check_ppp_running function
Connect_disconnect: T6261: correction to typo in check_ppp_running function
Changes include:
1. Replaces "beeing" -> being in print statement for check_ppp_running
2. Replaces "can not" -> cannot in print statement on lines 61 and 93
(cherry picked from commit 19e0d3b74f66e082c3f131b9044e7ca2371b1d85)
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/connect_disconnect.py | 6 |
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() |