Pocket Beagle - USB tether networking and microsd resizing

Hello,

I have to do a couple steps each time I boot my pocket beagle (USB tether to debian ubuntu 16.04 host). Is there a better way?

debian@beaglebone:~$ source doroute.sh
debian@beaglebone:~$ cat doroute.sh
sudo route add default gw 192.168.7.1
sudo cp /home/debian/resolv.conf /run/connman/resolv.conf
debian@beaglebone:~$ cat resolv.conf
nameserver 8.8.8.8

I have also had success with these instructions to resize a microSD partition. It seems a raspberry pi 3 b (raspian stretch desktop) may automatically resize the file system? Of course, automagic things have automagic results.

https://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD

Are there any other “gotchas”?

Thanks!
Fred