Commit 1ba50d11 authored by Adam Wujek's avatar Adam Wujek 💬

rootfs: remove function copy_conf from apply_dot-config

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 40052e77
......@@ -9,19 +9,11 @@
# When called with "local_config" parameter, files with information about
# dotconfig source are removed (used by SNMP)
# We create a temporary file in /tmp, to avoid wearing flash if not
# needed. Then we replace the real file if different.
# We create a temporary file in /tmp, store all files in ramdisk
tmpdir=/tmp
T=$(mktemp "$tmpdir"/config-XXXXXX)
copy_conf() {
# busybox cmp exits 1 or 2 according to GNU man page
for dest in $*; do
cmp -s $T $1 || cp $T $1
done
}
# check if config is local, used by webinterface
if [ "$1" == "local_config" ]; then
# remove source information in case previous config was received from
......
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