OK this is what I would try:
Make a shell script from the commands you want to run:
- Code: Select all
#!/bin/bash
setserial /dev/ttyS4 uart 16550A
setserial /dev/ttyS5 uart 16550A
setserial /dev/ttyS6 uart 16550A
setserial /dev/ttyS7 uart 16550A
Save it as setserial.sh and make it executable. If, as you say above you don't need sudo to run these commands you can save it to your home folder.
Now go to the program 'Startup Application' and add a new entry. Call it Setserial (or anything you like it doesn't matter) make the command to run
- Code: Select all
/home/yourusername/setserial.sh
I hope you appreaciate that it has to be your real username, not what I have just typed.
I start several programs this way and it always works for me, if it doesn't then it may be a permissions issue in which case my instinct would be to move setserial.sh to /usr/bin and change the ownership to root. I don't know if this works - I have never tried it.
Fujitsu Lifebook AH532 Laptop. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Ubuntu12.10 (Unity), Mint14 (Cinnamon), Manjaro (Xfce).
