Cosemtical changes
authorSteven Barth <steven@midlink.org>
Sat, 6 Sep 2008 16:27:40 +0000 (16:27 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 6 Sep 2008 16:27:40 +0000 (16:27 +0000)
libs/uci/root/sbin/luci-reload

index 4e0520cd06f091a1186c8caeed2c87f69f22a180..cc621b2e94ca390b177bf43aa58b4c250a0113e6 100755 (executable)
@@ -12,14 +12,14 @@ apply_config() {
 reload_exec() {
        [ -x $2 ] && {
                echo "Reloading $1... "
-               $2 >/dev/null 2>&1 && echo "done." || echo "failed!"
+               $2 >/dev/null 2>&1 || echo "!!! Failed to reload $1 !!!"
        }
 }
 
 reload_init() {
        [ -x /etc/init.d/$2 ] && /etc/init.d/$2 enabled && {
                echo "Reloading $1... "
-               /etc/init.d/$2 reload >/dev/null 2>&1 && echo "done." || echo "failed!" 
+               /etc/init.d/$2 reload >/dev/null 2>&1 || echo "!!! Failed to reload $1 !!!"
        }
 }
 
@@ -27,5 +27,6 @@ config_load ucitrack
 
 for i in $*
 do
-       config_foreach apply_config $i
+       config_foreach apply_config $i $i
+       echo "done."
 done
\ No newline at end of file