PKGBUILDs/core/initscripts/alarm.patch

59 lines
1.9 KiB
Diff
Raw Normal View History

2012-01-21 22:21:45 +00:00
diff -urN a/inittab b/inittab
--- a/inittab 2012-01-18 16:02:04.000000000 -0700
+++ b/inittab 2012-01-21 14:44:00.000000000 -0700
@@ -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
--- a/rc.shutdown 2012-01-18 16:02:04.000000000 -0700
+++ b/rc.shutdown 2012-01-21 14:44:00.000000000 -0700
@@ -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
--- a/rc.sysinit 2012-01-18 16:02:04.000000000 -0700
+++ b/rc.sysinit 2012-01-21 14:44:22.000000000 -0700
@@ -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
# mount /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm (the api filesystems)
@@ -190,7 +190,7 @@
fsck_reboot $fsckret
status "Remounting Root" \
- mount -o remount /
+ mount -o remount,rw /
# now mount all the local filesystems
run_hook sysinit_premount