mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2025-06-18 08:35:33 -04:00
Add script for automatic update of the setup
This commit is contained in:
parent
1a8660ea9b
commit
9a1a840e87
14
rpi_setup/files/Desktop/premade_scripts/update_script.sh
Normal file
14
rpi_setup/files/Desktop/premade_scripts/update_script.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
URL_TO_FILE=$1
|
||||
ZIP_FILE=$2
|
||||
SCRIPT_FILE_TO_EXECUTE=$3
|
||||
FOLDER_TMP_FILES=${HOME}/tmp
|
||||
|
||||
rm -rf ${FOLDER_TMP_FILES}
|
||||
mkdir -p ${FOLDER_TMP_FILES}
|
||||
cd ${FOLDER_TMP_FILES}
|
||||
wget ${URL_TO_FILE}/${ZIP_FILE}
|
||||
unzip ${ZIP_FILE}
|
||||
chmod +x ./${SCRIPT_FILE_TO_EXECUTE}
|
||||
./${SCRIPT_FILE_TO_EXECUTE}
|
3
rpi_setup/files/Desktop/update_to_stable.sh
Normal file
3
rpi_setup/files/Desktop/update_to_stable.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
premade_scripts/update_script.sh https://github.com/Lorenzooone/cc3dsfs/releases/latest/download cc3dsfs_rpi_kiosk_setup.zip setup.sh
|
3
rpi_setup/files/Desktop/update_to_unstable.sh
Normal file
3
rpi_setup/files/Desktop/update_to_unstable.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
premade_scripts/update_script.sh https://github.com/Lorenzooone/cc3dsfs/releases/download/nightly-latest cc3dsfs_rpi_kiosk_setup.zip setup.sh
|
@ -37,6 +37,8 @@ chmod +x -R ${HOME}/Desktop/premade_scripts/
|
||||
chmod +x -R ${HOME}/Desktop/${PROGRAM_NAME}_versions/
|
||||
chmod +x ${HOME}/Desktop/${PROGRAM_NAME}
|
||||
chmod +x ${HOME}/Desktop/${PROGRAM_NAME}_script.sh
|
||||
chmod +x ${HOME}/Desktop/update_to_unstable.sh
|
||||
chmod +x ${HOME}/Desktop/update_to_stable.sh
|
||||
|
||||
if [ -e /boot/firmware/config.txt ]; then
|
||||
FIRMWARE=/firmware
|
||||
|
Loading…
Reference in New Issue
Block a user