aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFilip Moc <lede@moc6.cz>2017-05-25 21:55:32 +0200
committerJohn Crispin <john@phrozen.org>2017-05-27 07:54:40 +0200
commit43e4e1f4a530dd9a03fdad55ef62fe9c379561bf (patch)
tree2942ac2f52067e03e3849510b538eee082b5d2c8 /target/linux
parenta639cbfd00a47dc55b1e4cd47897fa0a3150d0e9 (diff)
downloadupstream-43e4e1f4a530dd9a03fdad55ef62fe9c379561bf.tar.gz
upstream-43e4e1f4a530dd9a03fdad55ef62fe9c379561bf.tar.bz2
upstream-43e4e1f4a530dd9a03fdad55ef62fe9c379561bf.zip
Move enablemodem from ramips to new package adb-enablemodem and make it used also by TL-MR6400
Signed-off-by: Filip Moc <lede@moc6.cz>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/image/tp-link.mk2
-rwxr-xr-xtarget/linux/ramips/base-files/etc/init.d/enablemodem17
-rw-r--r--target/linux/ramips/image/mt7620.mk2
3 files changed, 2 insertions, 19 deletions
diff --git a/target/linux/ar71xx/image/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk
index f27ceec3e9..95bde34383 100644
--- a/target/linux/ar71xx/image/tp-link.mk
+++ b/target/linux/ar71xx/image/tp-link.mk
@@ -455,7 +455,7 @@ TARGET_DEVICES += tl-mr3020-v1 tl-mr3040-v1 tl-mr3040-v2 tl-mr3220-v1 tl-mr3220-
define Device/tl-mr6400-v1
$(Device/tplink-8mlzma)
DEVICE_TITLE := TP-LINK TL-MR6400 v1
- DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb
+ DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
BOARDNAME := TL-MR6400
DEVICE_PROFILE := TLMR6400
TPLINK_HWID := 0x64000001
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 ba54cc4e6a..0000000000
--- 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 73f91cfedd..e0f563e1b0 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