diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-03-25 19:00:36 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-03-25 19:00:36 +0100 |
commit | 364009e4317fb5c6732635726b511613aa2ed519 (patch) | |
tree | 44c5f4b54a47e3ba3c811ddd4bb43ee5ae1bb709 /python/vyos/util.py | |
parent | f8b3d8999cbea988ce8e7d303957558308ddc1bc (diff) | |
download | vyos-1x-364009e4317fb5c6732635726b511613aa2ed519.tar.gz vyos-1x-364009e4317fb5c6732635726b511613aa2ed519.zip |
vyos.util: T4319: rename sysctl() -> sysctl_write()
Diffstat (limited to 'python/vyos/util.py')
-rw-r--r-- | python/vyos/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py index da39ee8d1..f46775490 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -1011,7 +1011,7 @@ def sysctl_read(name): tmp = cmd(f'sysctl {name}') return tmp.split()[-1] -def sysctl(name, value): +def sysctl_write(name, value): """ Change value via sysctl() - return True if changed, False otherwise """ tmp = cmd(f'sysctl {name}') # last list index contains the actual value - only write if value differs |