Initial USB overlay
authorKristof Provost <kp@FreeBSD.org>
Tue, 2 May 2023 21:41:32 +0000 (23:41 +0200)
committerKristof Provost <kp@FreeBSD.org>
Tue, 2 May 2023 21:41:32 +0000 (23:41 +0200)
image/build.sh
image/overlay/usb/etc/rc.conf [new file with mode: 0644]
image/overlay/usb/etc/rc.local [new file with mode: 0644]

index 480dfe0..ba5faf6 100755 (executable)
@@ -11,5 +11,6 @@ poudriere bulk \
 poudriere image \
        -j $JAIL -p $PORTS -f $PACKAGES \
        -b \
+       -c overlay/usb \
        -n pennestraat \
        -s 20g -t usb
diff --git a/image/overlay/usb/etc/rc.conf b/image/overlay/usb/etc/rc.conf
new file mode 100644 (file)
index 0000000..60301c8
--- /dev/null
@@ -0,0 +1,2 @@
+# Run rc.local
+local_enable="YES"
diff --git a/image/overlay/usb/etc/rc.local b/image/overlay/usb/etc/rc.local
new file mode 100644 (file)
index 0000000..79e6969
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -x
+
+echo "Running rc.local!"
+
+# XXX Can we identify PC Engines boards?
+# hw.model Geode(TM) Integrated Processor by AMD PCS for old Alix boards
+
+if ! /usr/local/bin/bsddialog --pause "Auto-install?" 0 0 10;
+then
+/bin/sh
+fi
+
+echo "Autoinstall"