mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-24 21:48:52 +01:00
Bug corrections in share script: BACKING_STORE_FILE was the wrong file, trials not trial...
This commit is contained in:
parent
70fcbbe9b9
commit
d7bcbad041
@ -102,7 +102,7 @@ start_share () {
|
||||
# Get connection state
|
||||
local udc_state=$(cat /sys/class/udc/musb-hdrc.1.auto/state)
|
||||
sleep 1
|
||||
let trial=$trial+1
|
||||
let trials=$trials+1
|
||||
|
||||
# Check if USB is mounted
|
||||
if [ x"$udc_state" == "xconfigured" ]; then
|
||||
|
||||
@ -88,7 +88,7 @@ init_usb_gadget() {
|
||||
# Maximum power is 500 mA
|
||||
echo 500 > ${GADGET}/configs/FunKey.1/MaxPower
|
||||
|
||||
# Configruation String Descriptors
|
||||
# Configuration String Descriptors
|
||||
if [ ${USBNET} -eq 1 ]; then
|
||||
echo "Mass Storage + RNDIS" > ${GADGET}/configs/FunKey.1/strings/0x409/configuration
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user