nvram fixup: move the nvram commit hook to commit for all variables, since changes...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 27 Apr 2009 15:27:32 +0000 (15:27 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 27 Apr 2009 15:27:32 +0000 (15:27 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15441 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/unvram/files/nvram.init

index fcfa7f6..001b294 100755 (executable)
@@ -57,7 +57,6 @@ fixup_linksys() {
                                nvram_set sdram_ncdl 0x0
                        }
        esac
                                nvram_set sdram_ncdl 0x0
                        }
        esac
-       [ "$COMMIT" = "1" ] && nvram commit
 }
 
 start() {
 }
 
 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}')
        }
                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
 }
 }
This page took 0.021118 seconds and 4 git commands to generate.