automatic rule restore

This commit is contained in:
hummypkg 2014-06-13 19:09:47 +00:00
parent 5bda49c76d
commit 1328068b2a
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Package: sweeper
Priority: optional
Section: misc
Version: 2.0.1
Version: 2.0.2
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif(>=1.0.14-10)

View File

@ -1,7 +1,13 @@
#!/bin/sh
f=/mod/etc/sweeper.conf
[ ! -f $f ] && [ -f $f~ ] && cp $f~ $f
if [ ! -f $f ]; then
if [ -f $f~ ]; then
cp $f~ $f
elif [ -f "$f-opkg.backup" ]; then
cp "$f-opkg.backup" $f
fi
fi
exit 0