Have been trying to automate this process for sometime, but no matter which config file I tried to modify, nothing worked. A few days ago Google Gemini help me implement a workable solution:
Add following lines to /etc/rc.local
'# Automatically set up smartphone tethering and set brightness' (ignore quote marks - doesn't scan right here without!)
ifconfig ue0 up
dhclient ue0
backlight 25
Save file, then make executable: sudo chmod +x /etc/rc.local
Which works well as long as you've already set the (wired) connection between phone and laptop.
Previously I had to resort to recalling a line from the terminal:
sudo ifconfig ue0 up && sudo dhclient ue0; sudo backlight 25
Small quality of life improvement, but makes GhostBSD a little more pleasant to use