forked from hummypkg/sweeper
automatic rule restore
This commit is contained in:
parent
5bda49c76d
commit
1328068b2a
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user