Skip to content

Instantly share code, notes, and snippets.

@staybuzz
Created December 27, 2014 05:58
Show Gist options
  • Save staybuzz/daa708461c08a6bcc206 to your computer and use it in GitHub Desktop.
Save staybuzz/daa708461c08a6bcc206 to your computer and use it in GitHub Desktop.
Arch Linuxでisai(LGL22)にUSBテザリングさせる
#!/bin/sh
if [ ${EUID:-${UID}} != 0 ]; then
echo 'Need root privilege.'
exit 0
fi
ISAI=$(dmesg | tail | grep "renamed from usb0" | awk '{print $5}' | sed -e 's/:$//')
ip l set dev $ISAI up
dhcpcd $ISAI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment