Changeset 41865


Ignore:
Timestamp:
2014-07-29T04:12:24+02:00 (4 years ago)
Author:
nbd
Message:

procd: check output of "uci show" instead of raw config files in order to track uncommitted changes

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/system/procd/files/reload_config

    r37248 r41865  
    11#!/bin/sh 
     2rm -rf /var/run/config.check 
     3mkdir -p /var/run/config.check 
     4for config in /etc/config/*; do 
     5        file=${config##*/} 
     6        uci show "${file##*/}" > /var/run/config.check/$file 
     7done 
    28MD5FILE=/var/run/config.md5 
    39[ -f $MD5FILE ] && { 
     
    612        done 
    713} 
    8 md5sum /etc/config/* > $MD5FILE 
     14md5sum /var/run/config.check/* > $MD5FILE 
     15rm -rf /var/run/config.check 
Note: See TracChangeset for help on using the changeset viewer.