[SOLVED] saving htop config mods

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
lazardo
DD-WRT User


Joined: 17 Apr 2014
Posts: 140
Location: SF Bay Area

PostPosted: Tue Feb 06, 2024 19:20    Post subject: [SOLVED] saving htop config mods Reply with quote
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,
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum