Developing lightweight computation at the DSG edge

Commit 8c415244 authored by p4u's avatar p4u
Browse files

Add uci-default script to add .birth file in update.preserve if it does not exist

parent bd3bcb7e
#!/bin/sh
birth="/etc/qmp/.birth"
preserve="$(uci get qmp.update.preserve)"
found=0
for p in $preserve; do
[ "$p" == "$birth" ] && { found=1; break; }
done
[ $found -eq 0 ] && {
uci set qmp.update.preserve="$preserve $birth"
uci commit qmp
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment