mirror of
https://github.com/sipeed/LicheeRV-Nano-Build.git
synced 2026-11-09 18:04:55 -06:00
* fix reboot adbd issue
This commit is contained in:
@@ -7,8 +7,9 @@ then
|
|||||||
if [ -z "$(cat $UDC_PATH | tr -d '[:space:]')" ];
|
if [ -z "$(cat $UDC_PATH | tr -d '[:space:]')" ];
|
||||||
then
|
then
|
||||||
echo "try restart usb device"
|
echo "try restart usb device"
|
||||||
/etc/init.d/S03usbdev stop
|
/etc/init.d/S08usbdev stop
|
||||||
/etc/init.d/S03usbdev start
|
/etc/init.d/S08usbdev start
|
||||||
|
/etc/init.d/S30gadget_nic restart
|
||||||
fi
|
fi
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ then
|
|||||||
|
|
||||||
if [ -e /boot/usb.adbd ]
|
if [ -e /boot/usb.adbd ]
|
||||||
then
|
then
|
||||||
if [ -z $(ps aux | grep adbd_monitor | grep -v grep) ]; then
|
if [ -z "$(ps aux | grep adbd_monitor | grep -v grep)" ]; then
|
||||||
/etc/adbd_monitor.sh &
|
/etc/adbd_monitor.sh &
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user