Probably something is wrong with file permissions.
Try to run the following command:
Code:chmod 755 /opt/etc/init.d/S10cron
Printable View
Probably something is wrong with file permissions.
Try to run the following command:
Code:chmod 755 /opt/etc/init.d/S10cron
Hi,
what version of the firmware are you using?
Please post the result of "/opt/sbin/cron" and "ls -la /opt/sbin/c*".
Also post "cat /opt/etc/init.d/S10cron".
wengi
hi wengi
I use 1.9.2.7-d-r2624
result are:
-sh: /opt/sbin/cron: Permission denied
total 8
drwxrwxrwx 2 admin root 4096 Jun 23 22:57 .
drwxr-xr-x 3 admin root 4096 Oct 21 2010 ..
#!/bin/sh
#
# Startup script for cron
PIDFILE=/opt/var/run/cron.pid
case $1 in
start)
/opt/sbin/cron
;;
stop)
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}` ;;
*)
echo "usage: $0 (start|stop)"
exit 1
esac
Hi,
there is no cron in /opt/sbin !!!
Did you install cron? (ipkg install cron)
wengi
ipkg install cron
Package cron (4.1-8) installed in /opt/ is up to date.
Configuring cron
Remember that the system crontab file is "/opt/etc/crontab".
usage: /opt/etc/init.d/S10cron (start|stop)
postinst script returned status 1
ERROR: cron.postinst returned 1
Nothing to be done
Successfully terminated.
Later edit: removed cron, install again, now working
thank you for support
Hello all,
I am not able to run any programs installed by ipkg. I can see the program files in /opt/bin and /opt/sbin, and can 'cat' their contents, or copy them to other places, but whenever I try to execute one of them, sh returns a 'not found' message.
This is on a WL-500gPv2, running firmware version 1.9.2.7-rtn-r3073 which I built from source. I made one small modification to the source to change a few parameters that get passed to pppd, but that is the only change I made. opt is mounted from a USB disc, and appears to be working fine in all other respects.Code:[admin@WL500 sbin]$ pwd
/opt/sbin
[admin@WL500 sbin]$ ls -al
drwxr-xr-x 2 admin root 4096 Jul 13 10:39 .
drwxr-xr-x 11 admin root 4096 Nov 13 2010 ..
-rwxr-xr-x 1 admin root 72168 Oct 20 2010 cron
-rwxr-xr-x 1 admin root 373004 Dec 1 2010 privoxy
[admin@WL500 sbin]$ cron
-sh: cron: not found
[admin@WL500 sbin]$ ./cron
-sh: ./cron: not found
Any thoughts ?
sounds like an uclibc problem.
Have you installed uclibc from optware?:)
Hi at all.
I've the WL500GP and followed the tutorial to install and configure Oleg firmware. Installed Transmission and uShare. It has worked perfectly for a couple of years, until my last firmware update with 1.9.2.7-rtn-r3300. After that (i suppose) a cannot access any more to transmission web gui at http://192.168.1.1:9091/transmission/web/ and the same for uShare. The HD is still accessible from the PC and the folder of transmission are still there.
Any suggestion? I installed a wrong version of firmware?
Thank you
Hi,
just a guess.
Try "netstat -tulpen" in the shell and have a look if there is anything listening on these ports.
wengi
Hi,
i really meant "-tulpen".
Unfortunately i do not have an asus router any more, so i have no idea which switches are supported.
The most important one is -ln (for listening, numeric) which lists all active ports.
Try -l and look if e.g. 9091 for transmission is listed.
wengi
Hy wengy, this is the report of netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 WL-001E8C2D280C:netbios-ssn 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:www 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ftp 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:domain 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5431 0.0.0.0:* LISTEN
tcp 0 0 :::laserjet :::* LISTEN
tcp 0 0 :::domain :::* LISTEN
tcp 0 0 :::telnet :::* LISTEN
udp 0 0 WL-001E8C2D280C:netbios-ns 0.0.0.0:*
udp 0 0 0.0.0.0:netbios-ns 0.0.0.0:*
udp 0 0 WL-001E8C2D280C:netbios-dgm 0.0.0.0:*
udp 0 0 0.0.0.0:netbios-dgm 0.0.0.0:*
udp 0 0 localhost.localdomain:34954 0.0.0.0:*
udp 0 0 0.0.0.0:domain 0.0.0.0:*
udp 0 0 0.0.0.0:bootps 0.0.0.0:*
udp 0 0 0.0.0.0:upnp 0.0.0.0:*
udp 0 0 :::domain :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
nothing with 9091....
and this is the help for netstat
Usage: netstat [-ral] [-tuwx] [-en]
Display networking information
Options:
-r Routing table
-a All sockets
-l Listening sockets
Else: connected sockets
-t TCP sockets
-u UDP sockets
-w Raw sockets
-x Unix sockets
Else: all socket types
-e Other/more information
-n Don't resolve names
Hi,
transmission is not running.
try "/opt/etc/init.d/rc.unslung start" and have a look with "netstat -ln".
If there is still no port 9091 try "/opt/etc/init.d/S90transmission-daemon start" and again have a look with netstat.
If transmission is still not running:
Verify the content of /opt/etc/init.d/S90transmission-daemon with my howto and make shure it is executable (chmod 750).
Have a look at /opt/var/log/syslog.log. Are there any errors on transmission?
wengi
Thank's for your help but probably some scripts are corrupted and transmission in not running, i can't find also IPKG so i think that the best to do is to format the first 2 partitions and follow your tutorial again. I wouldn't want to loose all the files stored in the 3 partition so i will try to do everityng again without touching this partition...
Thank you