From 43e4e1f4a530dd9a03fdad55ef62fe9c379561bf Mon Sep 17 00:00:00 2001 From: Filip Moc Date: Thu, 25 May 2017 21:55:32 +0200 Subject: Move enablemodem from ramips to new package adb-enablemodem and make it used also by TL-MR6400 Signed-off-by: Filip Moc --- target/linux/ramips/base-files/etc/init.d/enablemodem | 17 ----------------- target/linux/ramips/image/mt7620.mk | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100755 target/linux/ramips/base-files/etc/init.d/enablemodem (limited to 'target/linux/ramips') diff --git a/target/linux/ramips/base-files/etc/init.d/enablemodem b/target/linux/ramips/base-files/etc/init.d/enablemodem deleted file mode 100755 index ba54cc4..0000000 --- a/target/linux/ramips/base-files/etc/init.d/enablemodem +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh /etc/rc.common - -START=99 - -start() { - . /lib/ramips.sh - - local board=$(ramips_board_name) - if [ $board = "mr200" ]; then - adb wait-for-device - adb shell chmod +x /WEBSERVER/www/cgi-bin/* - adb shell httpd -h /WEBSERVER/www/ & - echo "2357 000d" > /sys/bus/usb-serial/drivers/option1/new_id - sleep 2 - adb kill-server - fi -} diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 73f91cf..e0f563e 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -58,7 +58,7 @@ define Device/ArcherMR200 KERNEL := $(KERNEL_DTB) KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherMR200 -c IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j -s | append-metadata - DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb + DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem DEVICE_TITLE := TP-Link ArcherMR200 endef TARGET_DEVICES += ArcherMR200 -- cgit v1.1