diff options
author | ymano <ymano@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-05-28 19:16:22 +0000 |
---|---|---|
committer | ymano <ymano@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-05-28 19:16:22 +0000 |
commit | d232c3a5bad8b742fce5b02abf746421894456d5 (patch) | |
tree | 553cb1697d1de77cca540c4c86a9f705dc5fb6bf /target | |
parent | 0b0d05a2c1b70071a903d6720558d78742ad202b (diff) |
Add an initrun script that is respawned by init.
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
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ps3/base-files/etc/inittab | 2 | ||||
-rw-r--r-- | target/linux/ps3/base-files/sbin/initrun | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ps3/base-files/etc/inittab b/target/linux/ps3/base-files/etc/inittab index 931c3540f..b4dae8f74 100644 --- a/target/linux/ps3/base-files/etc/inittab +++ b/target/linux/ps3/base-files/etc/inittab @@ -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 index 000000000..e253c24b3 --- /dev/null +++ b/target/linux/ps3/base-files/sbin/initrun @@ -0,0 +1,3 @@ +#!/bin/sh + +/bin/ash --login |