Suppress eol in functionfs setup scripts (#147)

Stray newline character causes errors in functionfs setup scripts
used by android-tools-adbd.service, when using musl libc and/or toybox.

Signed-off-by: Devendra Tewari <devendra.tewari@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Devendra Tewari 2021-07-26 16:31:20 -03:00 committed by Khem Raj
parent 5e042ac207
commit db5f487344
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ cd /sys/kernel/config/usb_gadget
cd adb
echo "" > UDC || true
echo -n "" > UDC || true
killall adbd || true

View File

@ -23,8 +23,8 @@ mkdir configs/c.1
mkdir functions/ffs.usb0
mkdir strings/0x409
mkdir configs/c.1/strings/0x409
echo 0x18d1 > idVendor
echo 0xd002 > idProduct
echo -n 0x18d1 > idVendor
echo -n 0xd002 > idProduct
echo "$serial" > strings/0x409/serialnumber
echo "$manufacturer" > strings/0x409/manufacturer
echo "$model" > strings/0x409/product

View File

@ -4,4 +4,4 @@ set -e
sleep 3
ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/adb/UDC
ls /sys/class/udc/ | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC