diff options
author | Eugene Konev <ejka@openwrt.org> | 2007-03-18 14:18:56 +0000 |
---|---|---|
committer | Eugene Konev <ejka@openwrt.org> | 2007-03-18 14:18:56 +0000 |
commit | 3ac290db65f1535a0dbcb681c6529674525b758a (patch) | |
tree | 3d02e6fd304a8e04f14fb918073d74907c709e58 /target/linux/ar7-2.4/base-files/default/etc | |
parent | 33d6f026e744bab2d8a853b69ea2a61fc76b1161 (diff) | |
download | master-187ad058-3ac290db65f1535a0dbcb681c6529674525b758a.tar.gz master-187ad058-3ac290db65f1535a0dbcb681c6529674525b758a.tar.bz2 master-187ad058-3ac290db65f1535a0dbcb681c6529674525b758a.zip |
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 911134bb0d..0000000000 --- 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 5b676ca3ac..0000000000 --- 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 0000000000..965a1af611 --- /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 +} |