1 2 3 4 5 6 7 8 9 10 11 12 13
# systemd service file for usb-tethering [Unit] Wants=dhcpd4.service Description=USB Tethering ConditionPathExists=/sys/class/android_usb/android0 [Service] Type=oneshot ExecStart=/bin/bash /usr/bin/usb-tethering [Install] WantedBy=multi-user.target