I made up the following script to automate starting up wellenreiter. I am running a C860 using the new Cacko ROM (release 1.20 March 5). I am trying to run the script in Konsole after doing an su - to run as root. The commands all work perfectly if I type them into the Konsole keyboard. I entered the following text into ZEditor and saved the file in the /home/zaurus directory as wellenreiter_startup. I then then did the following to try to make it executable:
cd /home/zaurus
chmod 755 wellenreiter_startup
However, when I try to run it from Konsole (after doing su - and a cd /home/zaurus) I get the following error:
bash: wellenreiter_startup: command not found
Here is the script file:
#!/bin/sh
cd /etc/pcmcia
mv wlan-ng.conf .wlan-ng.conf
mv .hermes.conf hermes.conf
cardctl eject
/etc/rc.d/init.d/pcmcia restart
cardctl insert
cardctl scheme CardResume
cardctl scheme qpewlan0
cardctl reset
iwconfig
wellenreiter
OK, so what is wrong here that the script doesn\'t run. One place I saw that I should also do
./wellenreiter_startup
But that didn\'t seem to have any effect. Someone else said I need to use dos2unix to convert the script (that sounds strange to me). Please, linux experts let me know what I did wrong and how to get the script to run. Thanks.