Skip to content

Commit bd1fbd0

Browse files
committed
feat: script adaptation for 2 archives
1 parent 37090e1 commit bd1fbd0

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ Int and Ext SD card are considered.
1010
1. Enable adb on your device by creating a file named `enableADB` on the misc mount point
1111
2. edit `garlicos-updater.cfg`
1212

13-
| Variable | Optional | Description |
14-
|----------------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
15-
| garlicOsDownloadPath | | latest download link ([here](https://www.patreon.com/posts/76561333), named `RG35XX-CopyPasteOnTopOfStock.7z`) |
16-
| adbDeviceId | | adb device id (`adb devices`) |
17-
| saveDir | x | local dir where to save `saves` (example : `/home/Skekfly/saves`). It copies `saves` only if `saveDir` is set. (From Ext SD card if there is one, Int SD card otherwise) |
13+
| Variable | Optional | Description |
14+
|--------------------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
15+
| garlicOsDownloadPath_001 | | latest download link ([here](https://www.patreon.com/posts/76561333), named `RG35XX-CopyPasteOnTopOfStock.7z.001`) |
16+
| garlicOsDownloadPath_002 | | latest download link ([here](https://www.patreon.com/posts/76561333), named `RG35XX-CopyPasteOnTopOfStock.7z.002`) |
17+
| adbDeviceId | | adb device id (`adb devices`) |
18+
| saveDir | x | local dir where to save `saves` (example : `/home/Skekfly/saves`). It copies `saves` only if `saveDir` is set. (From Ext SD card if there is one, Int SD card otherwise) |
1819

1920
## How to
2021
1. power on your device
21-
2. Set the latest download link in `garlicos-updater.cfg`
22+
2. Set the latest download links (001 & 002) in `garlicos-updater.cfg`
2223
3. connect your device on the computer via USB
2324
4. Run `garlicos-updater.sh`

garlicos-updater.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
garlicOsDownloadPath=/download/path/
1+
garlicOsDownloadPath_001=/download/path/001/
2+
garlicOsDownloadPath_002=/download/path/002/
23
adbDeviceId=adbDeviceId

garlicos-updater.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ mkdir -p "$workingDir" || exit
1010
cd "$workingDir" || exit
1111

1212
echo "# Downloading update package"
13-
wget -O garlicOS.7z "$garlicOsDownloadPath" || exit
14-
7z x garlicOS.7z || exit
13+
wget -O garlicOS.7z.001 "$garlicOsDownloadPath_001" || exit
14+
wget -O garlicOS.7z.002 "$garlicOsDownloadPath_002" || exit
15+
7z x garlicOS.7z.001 || exit
1516

1617
echo "# Updating misc"
1718
adb shell mount -o rw,remount /misc

0 commit comments

Comments
 (0)