Situation: Whenever I boot up my Raspberry PI, I have to enter a few lines of commands to enable an interface. The commands:
sudo modprobe batman-adv
sudo batctl if add wlan0
sudo ifconfig wlan0 up
sudo ifconfig bat0 up
I would like to run a script that allows these commands to execute automatically when I boot up the Raspberry PI.