Progressbar

This commit is contained in:
Kroese 2023-03-27 19:48:56 +02:00
parent 746dc53947
commit 77a6997251

14
run.sh
View File

@ -12,9 +12,9 @@ if [ ! -f "$FILE" ]; then
echo "Downloading Synology DSM..." echo "Downloading Synology DSM..."
BASE="https://global.synologydownload.com/download/DSM" BASE="https://global.synologydownload.com/download/DSM"
PAT="$BASE/beta/7.2/64216/DSM_VirtualDSM_64216.pat" #PAT="$BASE/beta/7.2/64216/DSM_VirtualDSM_64216.pat"
#PAT="$BASE/release/7.1.1/42962-1/DSM_VirtualDSM_42962.pat" #PAT="$BASE/release/7.1.1/42962-1/DSM_VirtualDSM_42962.pat"
#PAT="$BASE/release/7.0.1/42218/DSM_VirtualDSM_42218.pat" PAT="$BASE/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
wget $PAT -O $FILE -q --show-progress wget $PAT -O $FILE -q --show-progress
@ -24,7 +24,7 @@ if [ ! -f "$FILE" ]; then
mkdir -p /images/out mkdir -p /images/out
if { tar tf "$FILE"; } >/dev/null 2>&1; then if { tar tf "$FILE"; } >/dev/null 2>&1; then
tar xf $FILE --checkpoint=.100 -C /images/out/. tar xf $FILE -C /images/out/.
else else
export LD_LIBRARY_PATH="/run" export LD_LIBRARY_PATH="/run"
/run/syno_extract_system_patch $FILE /images/out/. /run/syno_extract_system_patch $FILE /images/out/.
@ -63,11 +63,11 @@ if [ ! -f "$FILE" ]; then
rm -rf /mnt/tmp/{,.[!.],..?}* rm -rf /mnt/tmp/{,.[!.],..?}*
echo "Installing system partition..." echo -n "Installing system partition..."
tar -xf $HDA.tar --absolute-names --checkpoint=.100 -C /mnt/tmp/ tar -xf $HDA.tar --absolute-names --checkpoint=.1000 -C /mnt/tmp/
echo "Unmounting disk template..." echo "\nUnmounting disk template..."
rm $HDA.tar rm $HDA.tar
@ -164,7 +164,7 @@ echo "Launching Synology Serial Emulator..."
-cpu_arch string "QEMU, Virtual CPU, X86_64" \ -cpu_arch string "QEMU, Virtual CPU, X86_64" \
-guestsn "0000000000000" \ -guestsn "0000000000000" \
-hostsn "0000000000000" \ -hostsn "0000000000000" \
-guestuuid "ba13a19a-c0c1-4fef-9346-915ed3b98341" > /dev/null & -guestuuid "ba13a19a-c0c1-4fef-9346-915ed3b98341" > /dev/null 2>&1 &
# Stop the webserver # Stop the webserver
pkill -f server.sh pkill -f server.sh