save point for openwrt support addition
This commit is contained in:
parent
13091dd1c2
commit
f836a6317e
6 changed files with 60 additions and 1 deletions
|
@ -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!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue