mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
force usbnet in Recovery
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
875643021c
commit
3585de05ce
@ -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: "
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user