save point for openwrt support addition

This commit is contained in:
Paul M 2023-10-06 22:21:58 -05:00
parent 13091dd1c2
commit f836a6317e
6 changed files with 60 additions and 1 deletions

View file

@ -57,12 +57,26 @@ if [ "$osp" = "Arch" ]; then
pacman -Qqen > $tmpdir/installed_packages
cp ./restore.arch.bash $tmpdir/restore.bash
fi
if [ "$osp" = "Openwrt" ]; then
opkg list-installed > $tmpdir/installed_packages
cp ./restore.wrt.bash $tmpdir/restore.bash
cp ./bootstrap.wrt.ash $tmpdir
fi
arcdir=$(mktemp -d)
echo $arcdir
echo $mkslf
if [ "$osp" = "Openwrt" ]; then
$mkslf --gzip $tmpdir $arcdir/restore.run "SFX archive for restoration" ./bootstrap.wrt.ash
else
$mkslf --gzip $tmpdir $arcdir/restore.run "SFX archive for restoration" ./restore.bash
fi
cp $arcdir/restore.run ./
cprint 2 "Done!"