Compare commits
5
Commits
56915017ac
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c202610c67 | ||
|
|
183978de4e | ||
|
|
5796b47f31 | ||
|
|
8acb73f65a | ||
|
|
19c96a1aaa |
@@ -7,7 +7,7 @@ CACHE_DIR=<%= $(pwd) %>/cache
|
|||||||
ALPINE_MIRROR=https://dl-cdn.alpinelinux.org/alpine
|
ALPINE_MIRROR=https://dl-cdn.alpinelinux.org/alpine
|
||||||
ALPINE_ARCH=aarch64
|
ALPINE_ARCH=aarch64
|
||||||
ALPINE_VER_MAJOR=3
|
ALPINE_VER_MAJOR=3
|
||||||
ALPINE_VER_MINOR=20
|
ALPINE_VER_MINOR=21
|
||||||
ALPINE_VER_PATCH=3
|
ALPINE_VER_PATCH=3
|
||||||
REQUIREMENTS_FILE=required-apks.txt
|
REQUIREMENTS_FILE=required-apks.txt
|
||||||
eth0=eth0
|
eth0=eth0
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ build: repository
|
|||||||
|
|
||||||
card: clean build
|
card: clean build
|
||||||
@echo "### Copying to sdcard..."
|
@echo "### Copying to sdcard..."
|
||||||
@rsync -chavz --delete ${DIST_DIR}/ /media/$(shell whoami)/entropi
|
@rsync -chavz --delete ${DIST_DIR}/ /media/$(shell whoami)/ENTROPI
|
||||||
@echo "### Copying to sdcard done"
|
@echo "### Copying to sdcard done"
|
||||||
-@make clean
|
-@make clean
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ clean:
|
|||||||
-@rm -rf ${DIST_DIR}
|
-@rm -rf ${DIST_DIR}
|
||||||
-@rm -rf tmp*
|
-@rm -rf tmp*
|
||||||
-@rm -f ${CACHE_DIR}/aport/${RELEASE_VERSION}/main/${ALPINE_ARCH}/APKINDEX.tar.gz
|
-@rm -f ${CACHE_DIR}/aport/${RELEASE_VERSION}/main/${ALPINE_ARCH}/APKINDEX.tar.gz
|
||||||
-@docker rmi ${BUILDER_DOCKER_IMAGE} 1> /dev/null
|
-@docker rmi ${BUILDER_DOCKER_IMAGE} >/dev/null 2>&1
|
||||||
@echo "### Cleaning done"
|
@echo "### Cleaning done"
|
||||||
|
|
||||||
mrproper: clean
|
mrproper: clean
|
||||||
|
|||||||
@@ -36,3 +36,7 @@ AutoConnect=true
|
|||||||
```
|
```
|
||||||
|
|
||||||
All the files will be automatically picked up by the wifi daemon after the RaspberryPi finishes boot process
|
All the files will be automatically picked up by the wifi daemon after the RaspberryPi finishes boot process
|
||||||
|
|
||||||
|
### Troubleshooting
|
||||||
|
|
||||||
|
Alpine 3.22.0 produces a lot of "Clock skew detected" errors during boot and fails to execute the `headless.start` script. Version 3.21.3 works fine.
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ alpine_source() {
|
|||||||
|
|
||||||
tailspin_bin() {
|
tailspin_bin() {
|
||||||
find "$CACHE_DIR" -name tailspin.tar.gz -type f | grep -q . || \
|
find "$CACHE_DIR" -name tailspin.tar.gz -type f | grep -q . || \
|
||||||
wget https://github.com/bensadeh/tailspin/releases/download/4.0.0/tailspin-x86_64-unknown-linux-musl.tar.gz -O "$CACHE_DIR/tailspin.tar.gz"
|
wget https://github.com/bensadeh/tailspin/releases/download/4.0.0/tailspin-aarch64-unknown-linux-musl.tar.gz -O "$CACHE_DIR/tailspin.tar.gz"
|
||||||
|
|
||||||
mkdir -p "$CACHE_DIR/tailspin"
|
mkdir -p "$CACHE_DIR/tailspin"
|
||||||
|
|
||||||
|
|||||||
+6
-5
@@ -162,8 +162,10 @@ __setup_wireless_client() {
|
|||||||
mkdir -p /var/lib/iwd/ap/
|
mkdir -p /var/lib/iwd/ap/
|
||||||
|
|
||||||
copyfile root:root 0644 ${SDCARD_MEDIA}/main.conf /etc/iwd/main.conf
|
copyfile root:root 0644 ${SDCARD_MEDIA}/main.conf /etc/iwd/main.conf
|
||||||
copyfile root:root 0644 ${SDCARD_MEDIA}/NUMERI_AC11.psk /var/lib/iwd/NUMERI_AC11.psk
|
|
||||||
copyfile root:root 0644 ${SDCARD_MEDIA}/robusta_nomap.psk /var/lib/iwd/robusta_nomap.psk
|
for file in $(find ${SDCARD_MEDIA} -type f -name *.psk -exec basename {} \;); do
|
||||||
|
copyfile root:root 0644 ${SDCARD_MEDIA}/${file} /var/lib/iwd/${file}
|
||||||
|
done
|
||||||
|
|
||||||
copyfile root:root 0644 ${SDCARD_MEDIA}/hotspot.conf /var/lib/iwd/ap/<%= $ssid %>.ap
|
copyfile root:root 0644 ${SDCARD_MEDIA}/hotspot.conf /var/lib/iwd/ap/<%= $ssid %>.ap
|
||||||
copyfile root:root 0700 ${SDCARD_MEDIA}/watchdog.sh /etc/wireguard/watchdog.sh
|
copyfile root:root 0700 ${SDCARD_MEDIA}/watchdog.sh /etc/wireguard/watchdog.sh
|
||||||
@@ -173,8 +175,8 @@ __setup_wireless_client() {
|
|||||||
rc-service iwd start
|
rc-service iwd start
|
||||||
}
|
}
|
||||||
|
|
||||||
/sbin/setup-hostname <%= $hostname %>
|
setup-hostname <%= $hostname %>
|
||||||
/sbin/setup-timezone -z <%= $ROUTER_TIMEZONE %>
|
setup-timezone -z <%= $ROUTER_TIMEZONE %>
|
||||||
|
|
||||||
__setup_local_repositories
|
__setup_local_repositories
|
||||||
|
|
||||||
@@ -198,7 +200,6 @@ mkdir -p /etc/wireguard
|
|||||||
copyfile root:root 0600 ${SDCARD_MEDIA}/wg0.conf /etc/wireguard/wg0.conf
|
copyfile root:root 0600 ${SDCARD_MEDIA}/wg0.conf /etc/wireguard/wg0.conf
|
||||||
|
|
||||||
ln -s /etc/init.d/wg-quick /etc/init.d/wg-quick.wg0
|
ln -s /etc/init.d/wg-quick /etc/init.d/wg-quick.wg0
|
||||||
# rc-service wg-quick.wg0 start
|
|
||||||
|
|
||||||
__setup_time
|
__setup_time
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user