lazardo DD-WRT User
Joined: 17 Apr 2014 Posts: 140 Location: SF Bay Area
|
Posted: Tue Feb 06, 2024 19:20 Post subject: [SOLVED] saving htop config mods |
|
Start htop, F2, add disk and net i/o from the 'Meters' section for example. Quit htop, then:
Code: | pushd /tmp/root/.config/htop
nvram set my_htoprc="$( cat htoprc | gzip | uuencode - )" && nvram commit
popd
|
Add to your 'startup' commands:
Code: | cd /tmp/root
mkdir -p .config/htop
nvram get my_htoprc | uudecode | gzip -d > .config/htop/htoprc |
For noobs: nvram (not phys mem) storage is nearly always a limited resource, gzip + uuencode usually saves 1/3 to 1/2 and works for compressible and/or binary data.
cheers, |
|