2
0
forked from Ivasoft/openwrt

cleanup basefiles

SVN-Revision: 34698
This commit is contained in:
John Crispin
2012-12-15 02:01:00 +00:00
parent 601bc28669
commit 1dece11487
9 changed files with 76 additions and 89 deletions

View File

@@ -7,11 +7,14 @@
case "${BUTTON}" in
BTN_0)
logger "reset pressed"
echo "REBOOT" > /dev/console
sleep 3
sync
reboot
;;
BTN_1)
logger "factory pressed"
echo "FACTORY RESET" > /dev/console
jffs2_mark_erase "rootfs_data"
sync
reboot

View File

@@ -23,12 +23,11 @@ rt2x00_eeprom_extract() {
}
[ -e /lib/firmware/$FIRMWARE ] && exit 0
. /lib/lantiq.sh
. /lib/functions/lantiq.sh
case "$FIRMWARE" in
"RT2860.eeprom" )
local board=$(lantiq_board_name)
local board=$(lantiq_board_id)
case $board in
ARV7525PW|ARV752DPW)
rt2x00_eeprom_extract "board_config" 1040 272