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?