diff options
author | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-18 14:18:56 +0000 |
---|---|---|
committer | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-18 14:18:56 +0000 |
commit | 407b204ecd427a257a57bd53b245732ee71bab37 (patch) | |
tree | 3d02e6fd304a8e04f14fb918073d74907c709e58 /target/linux/ar7-2.4/base-files/default/etc | |
parent | 312e4176e0e4616589d6244f0b604272a0ccb9cb (diff) |
ar7-2.4 cleanup
- Switch to generic init scripts (/sbin/mount_root, /bin/firstboot,
/etc/preinit), failsafe part moved to /etc/preinit.arch.
This should fix #1449 with an added benefit of using mini_fo.
- Switch to generic /etc/config/network.
- ar7 flashmap: change "OpenWrt" to "rootfs_data", move ar7_mtd_cleanup
out of .exit.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6604 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7-2.4/base-files/default/etc')
3 files changed, 5 insertions, 25 deletions
diff --git a/target/linux/ar7-2.4/base-files/default/etc/config/network b/target/linux/ar7-2.4/base-files/default/etc/config/network deleted file mode 100644 index 911134bb0..000000000 --- a/target/linux/ar7-2.4/base-files/default/etc/config/network +++ /dev/null @@ -1,14 +0,0 @@ -# Network configuration file - -config interface loopback - option ifname lo - option proto static - option ipaddr 127.0.0.1 - option netmask 255.0.0.0 - -config interface lan - option ifname eth0 - option proto static - option ipaddr 192.168.1.1 - option netmask 255.255.255.0 - diff --git a/target/linux/ar7-2.4/base-files/default/etc/preinit b/target/linux/ar7-2.4/base-files/default/etc/preinit deleted file mode 100755 index 5b676ca3a..000000000 --- a/target/linux/ar7-2.4/base-files/default/etc/preinit +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -export PATH=/bin:/sbin:/usr/bin:/usr/sbin -mount none /proc -t proc - -[ -f /etc/preinit.arch ] && . /etc/preinit.arch -[ -z "$FAILSAFE" ] || { - echo /bin/true > /proc/sys/kernel/hotplug - telnetd -l /bin/login <> /dev/null 2>&1 -} -mount_root ${FAILSAFE:+failsafe} -exec /sbin/init diff --git a/target/linux/ar7-2.4/base-files/default/etc/preinit.arch b/target/linux/ar7-2.4/base-files/default/etc/preinit.arch new file mode 100755 index 000000000..965a1af61 --- /dev/null +++ b/target/linux/ar7-2.4/base-files/default/etc/preinit.arch @@ -0,0 +1,5 @@ +#!/bin/sh +[ -z "$FAILSAFE" ] || { + echo /bin/true > /proc/sys/kernel/hotplug + telnetd -l /bin/login <> /dev/null 2>&1 +} |