How can I create a text file to automatically run these commands:
sudo ap-hotspot start
sudo ap-hotspot configure
sudo ap-hotspot stop
sudo ap-hotspot restart
One file for each command.
I tried with creating a file ".sh" that contains:
#!/bin/bash
ap-hotspot start
Also used:
chown root:root <start-a-p>.sh
chmod 4755 <start-a-p>.sh
to give permissions.
But it doesn't work. Any other suggestions?
chmod +x <start-a-p>.sh
and btw, if you are using the<
in the file name, that may break it...<
. That was just for example.