Changeset 2623


Ignore:
Timestamp:
2005-12-11T23:11:57+01:00 (10 years ago)
Author:
nbd
Message:

only commit nvram if necessary (fixes #74)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/webif/files/usr/lib/webif/apply.sh

    r2474 r2623  
    5757[ -f /etc/nvram.overrides ] && ( # White Russian 
    5858        cd /proc/self 
    59         cat /tmp/.webif/config-* 2>&- | tee fd/1 | xargs -n1 nvram set 
     59        cat /tmp/.webif/config-* 2>&- | grep '=' >&- 2>&- && { 
     60                cat /tmp/.webif/config-* 2>&- | tee fd/1 | xargs -n1 nvram set 
     61                echo "Committing NVRAM ..." 
     62                nvram commit 
     63        } 
    6064) 
    61 echo "Committing NVRAM ..." 
    62 nvram commit 
    6365for config in $(ls config-* 2>&-); do  
    6466        name=${config#config-} 
Note: See TracChangeset for help on using the changeset viewer.