mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
resync with kamikaze
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3844 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
23
target/linux/package/base-files/files/au1000-2.6/sbin/mount_root
Executable file
23
target/linux/package/base-files/files/au1000-2.6/sbin/mount_root
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
|
||||
mount none /tmp -t tmpfs -o size=$size
|
||||
|
||||
if [ "$1" != "failsafe" ]; then
|
||||
mtd unlock filesystem
|
||||
mount | grep jffs2 >&-
|
||||
if [ $? = 0 ] ; then
|
||||
if [ $(cat /proc/mtd | wc -l) = 6 ]; then
|
||||
mtd erase filesystem
|
||||
jffs2root --move
|
||||
else
|
||||
mount -o remount,rw /dev/root /
|
||||
fi
|
||||
else
|
||||
. /bin/firstboot
|
||||
fi
|
||||
fi
|
||||
|
||||
mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
|
||||
mkdir -p /dev/pts
|
||||
mount none /dev/pts -t devpts
|
||||
mount -t sysfs none /sys 2>&-
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
setup_eth()
|
||||
setup_wl()
|
||||
{
|
||||
[ -f /proc/net/wl0 ] && {
|
||||
lsmod | grep wlcompat >&- || insmod wlcompat
|
||||
@@ -7,6 +7,9 @@ setup_eth()
|
||||
iwconfig "$INTERFACE" 2>&- | grep -v 'no wireless' >&- && {
|
||||
/sbin/wifi
|
||||
}
|
||||
}
|
||||
setup_eth()
|
||||
{
|
||||
[ -d /proc/switch ] || {
|
||||
insmod switch-core
|
||||
insmod switch-robo || insmod switch-adm
|
||||
@@ -30,6 +33,7 @@ do_register()
|
||||
{
|
||||
case "${INTERFACE%%[0-9]*}" in
|
||||
eth) setup_eth;;
|
||||
wl) setup_wl;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# Network configuration file
|
||||
|
||||
## LAN configuration
|
||||
lan_ifname="br0"
|
||||
lan_ifnames="eth0 ath0"
|
||||
lan_proto="static"
|
||||
lan_ipaddr="192.168.1.1"
|
||||
lan_netmask="255.255.255.0"
|
||||
|
||||
## WAN configuration
|
||||
wan_ifname=""
|
||||
wan_proto="none"
|
||||
@@ -0,0 +1,3 @@
|
||||
::sysinit:/etc/init.d/rcS
|
||||
duart/0::askfirst:/bin/ash --login
|
||||
#tts/1::askfirst:/bin/ash --login
|
||||
6
target/linux/package/base-files/files/sibyte-2.6/init
Executable file
6
target/linux/package/base-files/files/sibyte-2.6/init
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/ash
|
||||
mount none /dev -t devfs
|
||||
mount none /proc -t proc
|
||||
mount_root failsafe
|
||||
mount -o remount,rw /dev/root /
|
||||
exec /bin/busybox init
|
||||
@@ -0,0 +1,5 @@
|
||||
# Network configuration file
|
||||
|
||||
## LAN configuration
|
||||
lan_ifname="eth0"
|
||||
lan_proto="dhcp"
|
||||
4
target/linux/package/base-files/files/xscale-2.6/etc/init.d/S00xscale
Executable file
4
target/linux/package/base-files/files/xscale-2.6/etc/init.d/S00xscale
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
mount none /proc -t proc
|
||||
mount_root failsafe
|
||||
mount -o remount,rw /dev/root /
|
||||
3
target/linux/package/base-files/files/xscale-2.6/init
Executable file
3
target/linux/package/base-files/files/xscale-2.6/init
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/ash
|
||||
mount none /dev -t devfs
|
||||
exec /bin/busybox init
|
||||
Reference in New Issue
Block a user