Myles9
Posts: 28
Joined: Fri Sep 29, 2017 12:13 am

Run script on boot to LDXE

Sat Dec 02, 2017 2:02 am

I am new to the Linux ways and want to know how to run my script on boot to the terminal. I can run my script manually my going to its directory and typing

Code: Select all

./nameOfMyScript.sh | bluetoothctl
. My script is

Code: Select all

#!/bin/bash
echo "agent on"
sleep 1
echo "power on"
sleep 1
echo "discoverable on"
sleep 1
echo "exit"
I am on Raspbian Stretch Lite and a Pi 0 W. Any ideas?

Return to “General discussion”