File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 34
34
35
35
# Set Wi-Fi country to prevent RF kill
36
36
raspi-config nonint do_wifi_country "US"
37
+
38
+ # Fetch RaspAP version and set MOTD
39
+ RASPAP_VERSION=\$(curl -sL https://install.raspap.com | bash -s -- --version)
40
+ echo "\$RASPAP_VERSION" | tee /etc/motd
41
+ EOF
42
+ } &&
43
+ chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
44
+ {
45
+ cat > stage-raspap/prerun.sh <<-EOF
46
+ #!/bin/bash -e
47
+ if [ ! -d "\${ROOTFS_DIR}" ]; then
48
+ copy_previous
49
+ fi
37
50
EOF
38
51
} &&
39
52
chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
47
60
} &&
48
61
chmod +x stage-raspap/prerun.sh
49
62
50
- - name : Increase swap
51
- run : |
52
- sudo fallocate -l 4G /swapfile
53
- sudo chmod 600 /swapfile
54
- sudo mkswap /swapfile
55
- sudo swapon /swapfile
56
- free -h
57
-
58
63
- name : Build RaspAP Image
59
64
id : build
60
65
uses : usimd/pi-gen-action@v1
You can’t perform that action at this time.
0 commit comments