PKGBUILDs/core/initscripts/alarm.patch

59 lines
1.8 KiB
Diff
Raw Normal View History

2012-01-21 22:21:45 +00:00
diff -urN a/inittab b/inittab
2012-05-06 17:05:05 +00:00
--- a/inittab 2012-05-05 08:25:45.000000000 -0600
+++ b/inittab 2012-05-05 11:55:08.000000000 -0600
2012-01-21 22:21:45 +00:00
@@ -24,12 +24,13 @@
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
+s0:12345:respawn:/sbin/agetty -8 -s 115200 @TTY@ linux
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
-c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
-c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
-c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
-c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
+#c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
+#c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
+#c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
+#c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
diff -urN a/rc.shutdown b/rc.shutdown
2012-05-06 17:05:05 +00:00
--- a/rc.shutdown 2012-05-05 08:25:45.000000000 -0600
+++ b/rc.shutdown 2012-05-05 11:55:08.000000000 -0600
2012-01-21 22:21:45 +00:00
@@ -87,6 +87,10 @@
run_hook shutdown_poweroff
+# ALARM: Turn LEDs off
+
+/usr/bin/find /sys/ -path *led* -name *trigger* -exec sh -c '/bin/echo none > {}' \;
+
if [[ -x /run/initramfs/shutdown ]]; then
# decide what we want to do
diff -urN a/rc.sysinit b/rc.sysinit
2012-05-06 17:05:05 +00:00
--- a/rc.sysinit 2012-05-05 08:25:45.000000000 -0600
+++ b/rc.sysinit 2012-05-05 11:55:08.000000000 -0600
2012-01-21 22:21:45 +00:00
@@ -7,8 +7,8 @@
. /etc/rc.d/functions
echo " "
-printhl "Arch Linux\n"
-printhl "${C_H2}http://www.archlinux.org"
+printhl "Arch Linux ARM\n"
+printhl "${C_H2}http://www.archlinuxarm.org"
printsep
2012-05-06 17:05:05 +00:00
# mount the api filesystems
@@ -148,7 +148,7 @@
2012-01-21 22:21:45 +00:00
fsck_reboot $fsckret
status "Remounting Root" \
- mount -o remount /
+ mount -o remount,rw /
# now mount all the local filesystems
run_hook sysinit_premount