Save point trying to fix the /etc overwrite problem
This commit is contained in:
parent
640da30d98
commit
2a76825ad9
5 changed files with 1441 additions and 2 deletions
|
@ -14,6 +14,9 @@ fi
|
|||
source ./os_probe.bash
|
||||
source ./check.bash
|
||||
|
||||
pkgsum="pkgsum"
|
||||
hashapp="sha256sum"
|
||||
|
||||
# Some menu things
|
||||
|
||||
# colors
|
||||
|
@ -72,6 +75,10 @@ if [ "$osp" = "Openwrt" ]; then
|
|||
cp ./bootstrap.wrt.ash $tmpdir
|
||||
fi
|
||||
|
||||
# this will be used for the restore to make sure /etc is properly overwitten
|
||||
|
||||
find /etc -type f -exec $hashapp '{}' \; > $tmpdir/$pkgsum
|
||||
|
||||
arcdir=$(mktemp -d)
|
||||
echo $arcdir
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue