Hi you,
I am using Olegs Firmware 1.9.2.7-5a on USB stick and it works fine. But I do not understand, why not all lines in post-boot are executed. Could someone give me a hint please?
Here is my post-boot file. The marked lines are not executed, but the commands can be executed via command line.
Code:
#!/bin/sh
dropbear
/usr/sbin/smbd -D
touch /usr/local/sbin/1
/usr/sbin/nmbd -D
touch /usr/local/sbin/2
>>>/sbin/wshaper start "$" 1400 270
touch /usr/local/sbin/3
/bin/crond
touch /usr/local/sbin/4
>>>/tmp/harddisk/accounting/add_iptables.sh
touch /usr/local/sbin/5
>>>busybox_httpd -p 81 -u admin -h /tmp/harddisk/accounting/www81
touch /usr/local/sbin/6
All my shell scripts can only be executed on the command line if I type sh <scriptname>. If I type <scripname> only an error occurs.
Example:
Code:
[admin@WL500 root]$ ls -l
-rwxr-xr-x 1 admin root 52 Jun 3 20:17 fix.sh
[admin@WL500 root]$ cat fix.sh
#!/bin/sh
flashfs save
flashfs commit
flashfs enable
[admin@WL500 root]$ fix.sh
-sh: fix.sh: not found
[admin@WL500 root]$ sh fix.sh
tar: Removing leading '/' from member names
var/spool/cron/crontabs/root
etc/smb.conf
...OK
What could that be?
Thx
Thomas