Report comment

Hi Keith, Your welcome,

The nohook line does stop dhcpcd from starting wpa_supplicant for all interfaces but if you add deny interface to dhcpcd then wpa_supplicant is started but not for wlan0

open /etc/dhcpcd.conf

change the options to the below, note nohook should be after the interface line

interface wlan0
denyinterface wlan0
nohook wpa_supplicant
static ip_address=192.168.50.10/24
static routers=192.168.50.1
static domain_name_servers=8.8.8.8


All connected devices to the wlan0 hotspot will have internet via eth0.
The Pi itself will have internet via eth0 or wlan1 (presuming wlan1 is going to a router)
If eth0 is removed all connected devices to the wlan0 hotspot will loose the internet.
but if you are using ssh, vnc or a display on the PI it will itself still have internet via wlan1.

Alternately you can start wpa_supplicant on wlan1 yourself with
sudo wpa_supplicant -B -i wlan1 -c /etc/wpa_supplicant/wpa_supplicant.conf

this will need to be run at start up but you could add it to the bottom of the /etc/iptables-hs script
wpa_supplicant -B -i wlan1 -c /etc/wpa_supplicant/wpa_supplicant.conf >/dev/null 2>&1

hope this helps