mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-29 18:21:27 +00:00
Tiny bugfix
This commit is contained in:
parent
763a141f45
commit
a37a9cf9bd
1 changed files with 1 additions and 0 deletions
|
@ -233,6 +233,7 @@ install_common()
|
|||
chroot $SDCARD /bin/bash -c "systemctl daemon-reload" >> $DEST/debug/install.log 2>&1
|
||||
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable serial-getty@${array[0]}.service" >> $DEST/debug/install.log 2>&1
|
||||
if [[ ${array[0]} == "ttyGS0" && $LINUXFAMILY == sun8i && $BRANCH == default ]]; then
|
||||
mkdir -p $SDCARD/etc/systemd/system/serial-getty@ttyGS0.service.d
|
||||
cat <<-EOF > $SDCARD/etc/systemd/system/serial-getty@ttyGS0.service.d/10-switch-role.conf
|
||||
[Service]
|
||||
ExecStartPre=-/bin/sh -c "echo 2 > /sys/bus/platform/devices/sunxi_usb_udc/otg_role"
|
||||
|
|
Loading…
Add table
Reference in a new issue