Finally got to test my idea and except for a few script errors (not a big bash fan)... it worked!
Basically, I created a "package" of files that I place on a new image while it is still mounted in Windows into what is /root/rpi
I then wrote a script to automate the process but basically it does...
Code: Select all
Copying config files from /boot/rpi/config to /boot
- Copying /boot/rpi/config/70-persistent-net.rules
- Copying /boot/rpi/config/interfaces
- Copying /boot/rpi/config/wpa_supplicant.conf
Processing 70-persistent-net.rules
- Making copy of /etc/udev/rules.d/70-persistent-net.rules
ERROR file does not exist. No copy made...
- Creating symbolic link to /boot/70-persistent-net.rules
Processing interfaces
- Making copy of /etc/network/interfaces
- Creating symbolic link to /boot/interfaces
Processing wpa_supplicant.conf
- Making copy of /etc/wpa_supplicant/wpa_supplicant.conf
- Creating symbolic link to /boot/wpa_supplicant.conf
Appending addons to .bashrc for root
- Appending to /root/.bashrc
Appending addons to .bashrc for pi user
- Appending to /home/pi/.bashrc
Copying Common Utilities
- Copying files to /usr/local/bin/
Appending decode license to /root/config.txt
- Appending to /boot/config.txt
Script complete... rebooting will startup Wifi0
Need to expand filesystem and go from there after Reboot
So when the script runs (if it works right), the WiFi files are setup with my access points already in it, interfaces, 70-persistent-net.rules and wpa_supplicant.conf are symbolically mounted to /boot so I can access them from windows if I need to
All my common utilities are there along with my weird aliases I'm used to and use for both root and pi.
o I reboot, and WiFi finds the access point and links.
o I then modify /etc/hosts and /etc/hostname so that It see's the proper hostname
o I expand the filesystem
o and then do an update.
All can be done with just the keyboard (no mouse) and no GUI. In this particular case, I used a serial console cable... but the same would be if I was sitting in front of the TV with just a keyboard.
No drivers needed to be loaded, just a simple reboot to get the WiFi to use the config files I put into place.