mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-13 08:08: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
|
# Debian ifupdown needs the /run/network lock directory
|
||||||
mkdir -p /run/network
|
mkdir -p /run/network
|
||||||
[ -f /mnt/usbnet ] || exit 0
|
#[ -f /mnt/usbnet ] || exit 0
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
printf "Starting network: "
|
printf "Starting network: "
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
DAEMON=/sbin/dhcpcd
|
DAEMON=/sbin/dhcpcd
|
||||||
CONFIG=/etc/dhcpcd.conf
|
CONFIG=/etc/dhcpcd.conf
|
||||||
PIDFILE=/var/run/dhcpcd.pid
|
PIDFILE=/var/run/dhcpcd.pid
|
||||||
[ -f /mnt/usbnet ] || exit 0
|
#[ -f /mnt/usbnet ] || exit 0
|
||||||
[ -f $CONFIG ] || exit 0
|
[ -f $CONFIG ] || exit 0
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# Starts dropbear sshd.
|
# Starts dropbear sshd.
|
||||||
#
|
#
|
||||||
|
|
||||||
[ -f /mnt/usbnet ] || exit 0
|
#[ -f /mnt/usbnet ] || exit 0
|
||||||
# Allow a few customizations from a config file
|
# Allow a few customizations from a config file
|
||||||
test -r /etc/default/dropbear && . /etc/default/dropbear
|
test -r /etc/default/dropbear && . /etc/default/dropbear
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,8 @@ source /usr/local/lib/utils
|
|||||||
# The composite gadget directory
|
# The composite gadget directory
|
||||||
GADGET=/sys/kernel/config/usb_gadget/FunKey
|
GADGET=/sys/kernel/config/usb_gadget/FunKey
|
||||||
|
|
||||||
# Check if Ethernet over USB network is requested
|
# Force Ethernet over USB network for Recovery
|
||||||
[ ! -f /mnt/usbnet ]
|
USBNET=1
|
||||||
USBNET=${?}
|
|
||||||
|
|
||||||
# USB VID for Linux Foundation
|
# USB VID for Linux Foundation
|
||||||
ID_VENDOR="0x1d6b"
|
ID_VENDOR="0x1d6b"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user