nvram fixup: move the nvram commit hook to commit for all variables, since changes no longer take effect after only a set operation

SVN-Revision: 15441
This commit is contained in:
Felix Fietkau 2009-04-27 15:27:32 +00:00
parent 4c406b52a2
commit f8fb679405

View file

@ -57,7 +57,6 @@ fixup_linksys() {
nvram_set sdram_ncdl 0x0 nvram_set sdram_ncdl 0x0
} }
esac esac
[ "$COMMIT" = "1" ] && nvram commit
} }
start() { start() {
@ -72,4 +71,5 @@ start() {
nvram set il0macaddr=$(nvram get et0macaddr| nvram set il0macaddr=$(nvram get et0macaddr|
awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}') awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}')
} }
[ "$COMMIT" = "1" ] && nvram commit
} }