force usbnet in Recovery

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2020-11-01 00:42:12 +01:00
parent 875643021c
commit 3585de05ce
4 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,7 @@
# Debian ifupdown needs the /run/network lock directory
mkdir -p /run/network
[ -f /mnt/usbnet ] || exit 0
#[ -f /mnt/usbnet ] || exit 0
case "$1" in
start)
printf "Starting network: "

View File

@ -6,7 +6,7 @@
DAEMON=/sbin/dhcpcd
CONFIG=/etc/dhcpcd.conf
PIDFILE=/var/run/dhcpcd.pid
[ -f /mnt/usbnet ] || exit 0
#[ -f /mnt/usbnet ] || exit 0
[ -f $CONFIG ] || exit 0
case "$1" in

View File

@ -3,7 +3,7 @@
# Starts dropbear sshd.
#
[ -f /mnt/usbnet ] || exit 0
#[ -f /mnt/usbnet ] || exit 0
# Allow a few customizations from a config file
test -r /etc/default/dropbear && . /etc/default/dropbear

View File

@ -9,9 +9,8 @@ source /usr/local/lib/utils
# The composite gadget directory
GADGET=/sys/kernel/config/usb_gadget/FunKey
# Check if Ethernet over USB network is requested
[ ! -f /mnt/usbnet ]
USBNET=${?}
# Force Ethernet over USB network for Recovery
USBNET=1
# USB VID for Linux Foundation
ID_VENDOR="0x1d6b"