File tree Expand file tree Collapse file tree
board/funkey/rootfs-overlay/usr/local/sbin Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -127,6 +127,25 @@ is_share_started () {
127127 return $res
128128}
129129
130+ is_usb_data_connected () {
131+
132+ # Get USB state
133+ local usb_present=$( cat /sys/class/power_supply/axp20x-usb/present)
134+
135+ # Get udc state
136+ local udc_state=$( cat /sys/class/udc/musb-hdrc.1.auto/state)
137+
138+ if [ " x${udc_state} " = " xconfigured" -a " ${usb_present} " -eq 1 ]; then
139+
140+ # Connected succesfully to a host
141+ echo " yes"
142+ return 0
143+ else
144+ echo " no"
145+ return 1
146+ fi
147+ }
148+
130149case " $1 " in
131150
132151 init)
@@ -145,6 +164,9 @@ case "$1" in
145164 is_share_started
146165 ;;
147166
167+ is_usb_data_connected)
168+ is_usb_data_connected
169+ ;;
148170
149171 * )
150172 die 15 " Usage $0 {init|start|stop|is_sharing}"
Original file line number Diff line number Diff line change 33# gmenu2x
44#
55# ############################################################
6- GMENU2X_VERSION = 737b86e
6+
7+ GMENU2X_VERSION = 9f83250
78GMENU2X_SITE_METHOD = git
89GMENU2X_SITE = https://github.com/FunKey-Project/gmenu2x.git
910GMENU2X_LICENSE = GPL-2.0
Original file line number Diff line number Diff line change 44#
55# ###############################################################################
66
7- RETROFE_VERSION = 9184665
7+ RETROFE_VERSION = f162704
88RETROFE_SITE_METHOD = git
99RETROFE_SITE = https://github.com/FunKey-Project/RetroFE.git
1010RETROFE_DEPENDENCIES = gstreamer1 gst1-plugins-base sdl sdl_image sdl_mixer sdl_sound sdl_ttf libglib2 sqlite zlib
You can’t perform that action at this time.
0 commit comments