1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
enable_service(){ systemctl enable \ gadget-init.service \ gadget-start.service \ usbgadget-func-acm.service \ usbgadget-func-rndis.service \ getty@ttyGS0.service systemctl add-wants getty@ttyGS0.service \ usbgadget-func-acm.service } post_install(){ enable_service } post_upgrade(){ enable_service }