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:18:19 +0100 |
commit | 4187f010263646442dc2e70564d27787908a5fb1 (patch) | |
tree | 09f4e9e7f4899edb449c39a85dbfbd3a2ca9c3bf /python | |
parent | b12b4d512bd0f0cf98b717631be28a6fb5e65aa2 (diff) | |
download | vyos-1x-4187f010263646442dc2e70564d27787908a5fb1.tar.gz vyos-1x-4187f010263646442dc2e70564d27787908a5fb1.zip |
vyos.util: T4319: rename sysctl() -> sysctl_write()
(cherry picked from commit 364009e4317fb5c6732635726b511613aa2ed519)
Diffstat (limited to 'python')
-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 5dff70b94..b5d81fba5 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -819,7 +819,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 |