No, you can run this seperately afterwards...
I thought it was easier just to rewrite the S10xinetd script so it supports start/stop/restart....
swat is working.... _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
service
service xinetd
service xinetd start
netstat -anp | grep 901
netstat -an | grep 901
It's only for those downloading prep_optware today or before.... _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Somehow it seems optware is not running...
I can tell by "netstat -anp" giving an error...
Is it possible you did a quick login immediately after a reboot or didn't do a reboot yet? Start a new session (telnet or ssh) and see what happens if you give "netstat -anp"
You also need to enable xinetd.
Code:
service xinetd on
service xinetd start
_________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Sun Oct 18, 2009 22:30 Post subject:
Same thing with new telnet session, no quick login, and rebooted as advised in script
Code:
root@WRT54G-TMv11:~# netstat -anp
netstat: illegal option -- p
root@WRT54G-TMv11:~# service xinetd on
Enable service "xinetd" (/opt/etc/init.d/S10xinetd)
root@WRT54G-TMv11:~# service xinetd start
root@WRT54G-TMv11:~#
EDIT: after a another reboot of the router
Code:
root@WRT54G-TMv11:~# netstat -anp
netstat: illegal option -- p
root@WRT54G-TMv11:~# service xinetd on
root@WRT54G-TMv11:~# service xinetd start
xinetd already running
root@WRT54G-TMv11:~#
I get a login for SWAT, um what do i out in for name and password?
I entered
root - user name
admin - password
And got
Code:
401 Bad Authorization
username or password incorrect
Your login credentials should be same as your router's _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
echo $PATH
which bash
find / -name netstat
ls -altr /opt/etc/init.d/S01bashAsShell
ls -altr /opt/etc/init.d/S05chngProfile
cat /tmp/root/.profile
echo $PATH
echo $SHELL
echo $0
ls -altr /opt/bin/netstat
cat /etc/passwd | awk -F: '{print $7}'
_________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Somehow /opt/etc/init.d/optS doesn't run....
Does your rc_startup contain the lines to start it?
This should be in there and the mount to /opt should be done before...
Code:
n=1
while [ ! -d /opt/etc/init.d ] ; do
sleep 3
[ $n -gt 30 ] && break
let n+=1
done
/opt/etc/init.d/optS
You can manually run /opt/etc/init.d/optS and then relogin...
You can run those previous commands again...
PS... found the culprit.
I didn't do an 'nvram commit' so the modification to rc_startup and rc_shutdown got lost
A rerun of prep_optware should fix it... _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Mon Oct 19, 2009 0:19 Post subject:
In trying to fix the unable to connect with SWAT
Code:
root@WRT54G-TMv11:~# service xinetd on
Enable service "xinetd" (/opt/etc/init.d/S10xinetd)
root@WRT54G-TMv11:~# service xinetd start
root@WRT54G-TMv11:~# service named on
Enable service "named" (/opt/etc/init.d/S09named)
root@WRT54G-TMv11:~# service named start
Starting DNS Services: started
root@WRT54G-TMv11:~# service
Service: automount (/opt/etc/init.d/S35automount)
Service: samba (/opt/etc/init.d/S80samba)
Service: pound (/opt/etc/init.d/S80pound)
Service: asterisk (/opt/etc/init.d/S90asterisk)
Service: transmission-daemon (/opt/etc/init.d/S90transmission)
Service: xinetd (/opt/etc/init.d/S10xinetd)
Service: named (/opt/etc/init.d/S09named)
root@WRT54G-TMv11:~#
Now display's "Bad Authorization" page
EDIT: Clear active logins in Firefox and it gave me the login window again.
So I guess the only problem in that xinetd and named doesn't start automatically.
I can't replicate the 'top' problem.
Both 'tops' are working here.
The optware top and the /usr/bin/top (dd-wrt's).
First we need to find out which top is giving the problem. There's actually a program called 'which' which is helpful with that....
Code:
which top
type top
/usr/bin/top
/opt/bin/top
echo $PATH
echo $LD_LIBRARY_PATH
Also do a reboot, wait before the router settles down and login again to see if it still has the problem.
If the problem is with DD-WRT's top it is possible your library is smaller... Anyhow... 'top' should execute optware's top unless your PATH is not properly set...
Of course this should work properly but in the mean time you can use htop which has more possibilities.
Quote:
EDIT: Clear active logins in Firefox and it gave me the login window again.
So I guess the only problem in that xinetd and named doesn't start automatically.
I knew that and assumed you'll find out... _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Unless you really need them you should disable the following services: asterisk, named and pound because they take precious resources...
Code:
service asterisk off
service named off
service pound off
service asterisk stop
service named stop
service pound stop
Same goes for transmission.... (a bittorrent client) _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge