Add an initrun script that is respawned by init.
authorymano <ymano@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 May 2008 19:16:22 +0000 (19:16 +0000)
committerymano <ymano@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 May 2008 19:16:22 +0000 (19:16 +0000)
This default initrun script calls /bin/login as usual, but packages (ex. bootloader packages) can modify it to run custom scripts/execs at init.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11283 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ps3/base-files/etc/inittab
target/linux/ps3/base-files/sbin/initrun [new file with mode: 0644]

index 931c354..b4dae8f 100644 (file)
@@ -3,4 +3,4 @@
 ::ctrlaltdel:/sbin/reboot
 tts/0::askfirst:/bin/ash --login
 ttyS0::askfirst:/bin/ash --login
-tty1::askfirst:/bin/ash --login
+tty1::respawn:/usr/sbin/initrun
diff --git a/target/linux/ps3/base-files/sbin/initrun b/target/linux/ps3/base-files/sbin/initrun
new file mode 100644 (file)
index 0000000..e253c24
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/bin/ash --login
This page took 0.02781 seconds and 4 git commands to generate.