-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.sh
More file actions
27 lines (25 loc) · 907 Bytes
/
package.sh
File metadata and controls
27 lines (25 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
. <( curl -sL https://github.com/rern/rOS/raw/main/common.sh )
! grep -q ^Model.*Rasp /proc/cpuinfo && errorExit This is not a Raspberry Pi
#----------------------------------------------------------------------------
#........................
dialogSplash Package Utilities
list="\
Build Package^pkgbuild
Update Repo^repoupdate
AUR Setup^aursetup
Create guide.tar.xz
Create radioparadise.tar.xz
Create regdomcodes.json^wirelessregdom"
#........................
task=$( dialogMenu Package "$( sed 's/\^.*//' <<< $list )" )
name=$( sed -n "$task {s/.*^//; p}" <<< $list )
#........................
dialogSplash $name
if [[ $name ]]; then
. <( curl -sL https://github.com/rern/rern.github.io/raw/main/$name.sh )
elif grep -q guide <<< $name
bsdtar cjvf guide.tar.xz -C /srv/http/assets/img/guide .
elif grep -q radio <<< $name
bsdtar cjvf radioparadise.tar.xz -C /srv/http/data/webradio .
fi