Save point trying to fix the /etc overwrite problem

This commit is contained in:
kake26 2024-05-23 17:45:46 -05:00
parent 640da30d98
commit 2a76825ad9
Signed by: kake26
GPG key ID: E8AFC43591876B4D
5 changed files with 1441 additions and 2 deletions

View file

@ -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