initrd: Add various /etc files
authorFrançois Tigeot <ftigeot@wolfpond.org>
Wed, 9 Apr 2014 21:26:28 +0000 (23:26 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Wed, 9 Apr 2014 21:32:07 +0000 (23:32 +0200)
* /etc/motd submitted by Matthew Dillon <dillon@apollo.backplane.com>

share/initrd/etc/Makefile
share/initrd/etc/motd [new file with mode: 0644]
share/initrd/etc/rc

index 55d4977..b7c8deb 100644 (file)
@@ -15,7 +15,10 @@ FILESMODE_${file}=555
 
 # Files that should be installed read-only (444)
 #
-ETC_FILES=     ${.CURDIR}/wpa_supplicant.conf
+ETC_FILES=     ${.CURDIR}/../../../etc/protocols       \
+               ${.CURDIR}/../../../etc/regdomain.xml   \
+               ${.CURDIR}/wpa_supplicant.conf          \
+               ${.CURDIR}/motd
 
 afterinstall:
        ${INSTALL} -o root -g wheel -m 444 \
diff --git a/share/initrd/etc/motd b/share/initrd/etc/motd
new file mode 100644 (file)
index 0000000..bb9c9eb
--- /dev/null
@@ -0,0 +1,5 @@
+use ifconfig to list available interfaces
+
+ wifi example - dowpa ath0 ssid password
+ ethernet     - dhclient em0
+
index 08977e8..754540b 100755 (executable)
@@ -11,6 +11,7 @@ mkdir /var/run
 /sbin/mount_ufs -w /dev/md0s0 /
 
 rescue_shell() {
+       cat /etc/motd
        echo "Starting recovery shell!"
        exec sh
        exit 0