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