* fix reboot adbd issue

This commit is contained in:
lxowalle
2026-01-14 09:49:36 +08:00
parent 61013d819e
commit d4003f15b3
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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