Initial commit
This commit is contained in:
26
target/linux/rb532/base-files/etc/config/network
Normal file
26
target/linux/rb532/base-files/etc/config/network
Normal file
@@ -0,0 +1,26 @@
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
|
||||
config interface loopback
|
||||
option ifname lo
|
||||
option proto static
|
||||
option ipaddr 127.0.0.1
|
||||
option netmask 255.0.0.0
|
||||
|
||||
config interface wan
|
||||
option ifname eth0
|
||||
option proto dhcp
|
||||
|
||||
config interface lan
|
||||
option type bridge
|
||||
option ifname eth2
|
||||
option proto static
|
||||
option ipaddr 192.168.1.1
|
||||
option netmask 255.255.255.0
|
||||
option ip6assign 60
|
||||
|
||||
config interface wan6
|
||||
option ifname eth0
|
||||
option proto dhcpv6
|
||||
|
||||
config globals globals
|
||||
option ula_prefix auto
|
||||
17
target/linux/rb532/base-files/etc/diag.sh
Normal file
17
target/linux/rb532/base-files/etc/diag.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2007-2013 OpenWrt.org
|
||||
|
||||
. /lib/functions/leds.sh
|
||||
|
||||
status_led="rb500led:amber"
|
||||
|
||||
set_state() {
|
||||
case "$1" in
|
||||
preinit)
|
||||
status_led_on
|
||||
;;
|
||||
done)
|
||||
status_led_off
|
||||
;;
|
||||
esac
|
||||
}
|
||||
11
target/linux/rb532/base-files/lib/preinit/01_sysinfo
Normal file
11
target/linux/rb532/base-files/lib/preinit/01_sysinfo
Normal file
@@ -0,0 +1,11 @@
|
||||
get_model_rb532() {
|
||||
grep system\ type /proc/cpuinfo | awk -F ": " '{print $2}'
|
||||
}
|
||||
|
||||
do_sysinfo_rb532() {
|
||||
mkdir -p /tmp/sysinfo
|
||||
echo rb532 > /tmp/sysinfo/board_name
|
||||
get_model_rb532 > /tmp/sysinfo/model
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main do_sysinfo_rb532
|
||||
20
target/linux/rb532/base-files/lib/upgrade/platform.sh
Normal file
20
target/linux/rb532/base-files/lib/upgrade/platform.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
RAMFS_COPY_BIN='nandwrite'
|
||||
CI_KERNPART=none
|
||||
|
||||
platform_check_image() {
|
||||
[ -e /dev/ubi0 ] || {
|
||||
ubiattach -m 1
|
||||
sleep 1
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
platform_nand_pre_upgrade() {
|
||||
mtd erase kernel
|
||||
tar xf "$1" "sysupgrade-$(board_name)/kernel" -O | nandwrite -o /dev/mtd0 -
|
||||
}
|
||||
|
||||
platform_do_upgrade() {
|
||||
nand_do_upgrade "$1"
|
||||
}
|
||||
Reference in New Issue
Block a user