mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-20 19:06:54 +01:00
Big refactor based on #4324 introducing a new drive layout - adding optimizations for Proxmox and old laptop drive layout . Also making it possible to boot from NVMe. Replacing blitz.datadrive.sh with blitz.data.sh - icluding the possibility to migrate an old ssd/nvme to a bigger one (copying complete data and blockchain). Lots of smaller changes.
19 lines
506 B
Bash
Executable File
19 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# get basic system information
|
|
# these are the same set of infos the WebGUI dialog/controler has
|
|
source /home/admin/raspiblitz.info
|
|
|
|
|
|
source <(/home/admin/_cache.sh get ui_migration_upload ui_migration_uploadUnix ui_migration_uploadWin)
|
|
if [ "${ui_migration_upload}" = "1" ]; then
|
|
|
|
sudo /home/admin/config.scripts/blitz.migration.sh import-gui
|
|
|
|
/home/admin/_cache.sh set state "waitprovision"
|
|
exit 0
|
|
fi
|
|
|
|
# break loop if no matching if above
|
|
/home/admin/_cache.sh set state "error"
|
|
exit 1 |