diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-04-27 15:27:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-04-27 15:27:32 +0000 |
commit | f8fb679405a4476db37cab7a124de10765e0a834 (patch) | |
tree | 74968c4f89d6d250c78fa22985c54cf46b31bba1 | |
parent | 4c406b52a20051e5cbadef328622258121a6003c (diff) | |
download | upstream-f8fb679405a4476db37cab7a124de10765e0a834.tar.gz upstream-f8fb679405a4476db37cab7a124de10765e0a834.tar.bz2 upstream-f8fb679405a4476db37cab7a124de10765e0a834.zip |
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
-rwxr-xr-x | package/unvram/files/nvram.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/unvram/files/nvram.init b/package/unvram/files/nvram.init index fcfa7f65e9..001b294959 100755 --- a/package/unvram/files/nvram.init +++ b/package/unvram/files/nvram.init @@ -57,7 +57,6 @@ fixup_linksys() { nvram_set sdram_ncdl 0x0 } esac - [ "$COMMIT" = "1" ] && nvram commit } start() { @@ -72,4 +71,5 @@ start() { 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}') } + [ "$COMMIT" = "1" ] && nvram commit } |