mightyoakbob
Regular Contributor
I've made a lot of progress this morning with working out how to load and save various bits of the nvram settings. I would also like to be able to save load the mac filter list.
I have have discovered that the 2.4 GHz mac filter list can be obtained with this...
nvram get wl0_maclist_x > /mnt/Home/Bob/24maclist.txt
This works EVEN for ME!!
But the 5.0 GHz list seems to be in two variables and these are..
wl1_maclist_x AND wl_maclist_x
Which should I use to restore the settings after a factory reset?
Another question about restoring the data.. I've read and seen two methods of doing this will both work as well as each other?
nvram set varname="'cat /mnt/Home/Bob/filename'"
And
nvram set varname=$(cat /mnt/Home/Bob/filename
Are both of the above the same and is my syntax correct?
Am I correct in thinking I need to use nvram commit with either of them?
Thanks everyone. You can probably see I am at last starting to get to grips with this now. Nearly there at last.
Cheers.
Bob.
I have have discovered that the 2.4 GHz mac filter list can be obtained with this...
nvram get wl0_maclist_x > /mnt/Home/Bob/24maclist.txt
This works EVEN for ME!!
But the 5.0 GHz list seems to be in two variables and these are..
wl1_maclist_x AND wl_maclist_x
Which should I use to restore the settings after a factory reset?
Another question about restoring the data.. I've read and seen two methods of doing this will both work as well as each other?
nvram set varname="'cat /mnt/Home/Bob/filename'"
And
nvram set varname=$(cat /mnt/Home/Bob/filename
Are both of the above the same and is my syntax correct?
Am I correct in thinking I need to use nvram commit with either of them?
Thanks everyone. You can probably see I am at last starting to get to grips with this now. Nearly there at last.
Cheers.
Bob.