2014-04-30 21:15:31 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Handle moving the legacy /var/mongoose directory to /webif..
|
|
|
|
|
2014-04-30 21:57:44 +00:00
|
|
|
if [ -h /mod/webif -a -d /mod/var/mongoose -a ! -h /mod/var/mongoose ]; then
|
2014-04-30 21:15:31 +00:00
|
|
|
echo "Relocating web interface files..."
|
|
|
|
|
|
|
|
cd /mod
|
|
|
|
rm webif || exit 1
|
|
|
|
mv var/mongoose webif || exit 1
|
|
|
|
cd var
|
|
|
|
ln -s ../webif mongoose
|
|
|
|
fi
|
|
|
|
|
2017-08-25 19:19:52 +00:00
|
|
|
if [ ! -f /mod/webif/.pfixpkg -a -x /mod/bin/at ]; then
|
|
|
|
/mod/bin/at now + 1 minute << EOM
|
2017-03-01 00:01:50 +00:00
|
|
|
diag fixpkg
|
|
|
|
touch /mod/webif/.pfixpkg
|
|
|
|
EOM
|
|
|
|
fi
|
|
|
|
|
2014-04-30 21:15:31 +00:00
|
|
|
exit 0
|
|
|
|
|