tiomenu-sysctl - iomenu - interactive terminal-based selection menu
(HTM) git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
tiomenu-sysctl (196B)
---
1 #!/bin/sh -e
2 # set a sysctl key to chosen value
3
4 ctl=$(sysctl -a | iomenu | sed 's/=.*//')
5 test -n "$ctl"
6
7 printf 'Set value of %s to: ' "$ctl" >&2
8 read -r value
9
10 set -x
11 exec sysctl "$ctl=$value"