mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-01-01 17:28:58 +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
|
# Get connection state
|
||||||
local udc_state=$(cat /sys/class/udc/musb-hdrc.1.auto/state)
|
local udc_state=$(cat /sys/class/udc/musb-hdrc.1.auto/state)
|
||||||
sleep 1
|
sleep 1
|
||||||
let trial=$trial+1
|
let trials=$trials+1
|
||||||
|
|
||||||
# Check if USB is mounted
|
# Check if USB is mounted
|
||||||
if [ x"$udc_state" == "xconfigured" ]; then
|
if [ x"$udc_state" == "xconfigured" ]; then
|
||||||
|
|||||||
@ -88,7 +88,7 @@ init_usb_gadget() {
|
|||||||
# Maximum power is 500 mA
|
# Maximum power is 500 mA
|
||||||
echo 500 > ${GADGET}/configs/FunKey.1/MaxPower
|
echo 500 > ${GADGET}/configs/FunKey.1/MaxPower
|
||||||
|
|
||||||
# Configruation String Descriptors
|
# Configuration String Descriptors
|
||||||
if [ ${USBNET} -eq 1 ]; then
|
if [ ${USBNET} -eq 1 ]; then
|
||||||
echo "Mass Storage + RNDIS" > ${GADGET}/configs/FunKey.1/strings/0x409/configuration
|
echo "Mass Storage + RNDIS" > ${GADGET}/configs/FunKey.1/strings/0x409/configuration
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user