#!/bin/sh

uci -q batch <<-EOF >/dev/null
	delete ucitrack.@familycloud[-1]
	add ucitrack familycloud
	set ucitrack.@familycloud[-1].init=familycloud
	commit ucitrack
EOF

touch /tmp/config.json

ln -s /tmp/config.json /usr/share/familycloud/CloudDisk/config.json

rm -f /tmp/luci-indexcache

exit 0
