DALLASCAO.COM

Site of Cao Shouguang, English to Chinese translator

Make nvram unset support wild chars

for _TEMPVAR in `nvram show 2>/dev/null|grep "^bw_.*_key"|cut -d'=' -f1`;
do nvram unset $_TEMPVAR; 
done

This will remove all nvram variables whose names are in pattern of “bw_(anything)_key”.

Leave a Comment