LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   running a program start script in terminal (https://www.linuxquestions.org/questions/linux-software-2/running-a-program-start-script-in-terminal-632164/)

fenriswoolf 04-01-2008 08:13 AM

running a program start script in terminal
 
greetings,
i have got a gateway t1616 which has an integrated rtl8127 wireless card. the only way to get this card working is with the launch command './wlan0up' in terminal inside the driver software folder that was provided by the manufacturer. i wonder whether anyone knows of a way to start the card automatically during booting by running a command script in terminal ... thanks theo

KenJackson 04-01-2008 09:25 AM

What distro of Linux are you running?

It sounds like you installed software from the manufacturer which is not distributed by the Linux distro. That works, but things usually work more seamlessly if you can install a package from the distro instead.

But assuming you want to run with what you have, the simplest way would be to add commands to (or create) the /etc/rc.local script.
Code:

#!/bin/sh
...
cd /usr/local/some_directory
./wlan0up

Note that there may be distos that don't support /etc/rc.local. Also, there may be better ways, such adding or modifying files in /etc/sysconfig/, depending on which distro you are running.


All times are GMT -5. The time now is 11:05 PM.