What's new

services-start NOT FOUND

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Ricardo Carreira

New Around Here
Hello,

I Have an ASUS RT-AC88U,

my services-start file apears to be not found!

Also any other script with some other name is the same.

What am I doing wrong?

Enable JFFS custom scripts and configs YES

SSH and SCP client is MobaXterm

Notepad++ for editing

Code:
chmod a+rx /jffs/scripts/*

Code:
XXX@RT-AC88U:/tmp/home/root# /jffs/scripts/services-start
-sh: /jffs/scripts/services-start: not found

Code:
XXX@RT-AC88U:/tmp/home/root# ls /jffs/scripts/
dnsmasq.conf.add  services-start

Code:
#!/bin/sh
sleep 10
robocfg vlan 1 ports "1 3 5 7 8t"
robocfg vlan 3 ports "2 8t"
robocfg vlan 100 ports "0 4t 8t"
robocfg vlan 105 ports "0 4t"
brctl delif br0 wl0.2
brctl delif br0 wl1.2
brctl addbr br1
brctl addif br1 wl0.2
brctl addif br1 wl1.2
brctl addif br1 vlan3
nvram set lan_ifnames="vlan1 eth1 eth2"
nvram set lan_ifname="br0"
nvram set lan1_ifnames="vlan3 wl0.2 wl1.2"
nvram set lan1_ifname="br1"
ifconfig br1 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
iptables -D INPUT -i br1 -j ACCEPT
iptables -I INPUT -i br1 -j ACCEPT
iptables -t nat -I POSTROUTING -o eth0 -j SNAT --to $WANIP
iptables -I FORWARD -i br1 -m state --state NEW -j ACCEPT
iptables -I FORWARD -i br1 -o br0 -m state --state NEW -j DROP
iptables -I FORWARD -i br1 -d 192.168.1.0/24 -m state --state NEW -j DROP
iptables -I INPUT -i br1 -p tcp --dport telnet -j REJECT --reject-with tcp-reset
iptables -I INPUT -i br1 -p tcp --dport ssh -j REJECT --reject-with tcp-reset
iptables -I INPUT -i br1 -p tcp --dport www -j REJECT --reject-with tcp-reset
iptables -I INPUT -i br1 -p tcp --dport https -j REJECT --reject-with tcp-reset

killall eapd
eapd
 
Hello,

I Have an ASUS RT-AC88U,

my services-start file apears to be not found!

Also any other script with some other name is the same.

What am I doing wrong?

Enable JFFS custom scripts and configs YES

SSH and SCP client is MobaXterm

Notepad++ for editing

Code:
chmod a+rx /jffs/scripts/*

Code:
XXX@RT-AC88U:/tmp/home/root# /jffs/scripts/services-start
-sh: /jffs/scripts/services-start: not found

Code:
XXX@RT-AC88U:/tmp/home/root# ls /jffs/scripts/
dnsmasq.conf.add  services-start

Code:
#!/bin/sh
sleep 10
robocfg vlan 1 ports "1 3 5 7 8t"
robocfg vlan 3 ports "2 8t"
robocfg vlan 100 ports "0 4t 8t"
robocfg vlan 105 ports "0 4t"
brctl delif br0 wl0.2
brctl delif br0 wl1.2
brctl addbr br1
brctl addif br1 wl0.2
brctl addif br1 wl1.2
brctl addif br1 vlan3
nvram set lan_ifnames="vlan1 eth1 eth2"
nvram set lan_ifname="br0"
nvram set lan1_ifnames="vlan3 wl0.2 wl1.2"
nvram set lan1_ifname="br1"
ifconfig br1 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
iptables -D INPUT -i br1 -j ACCEPT
iptables -I INPUT -i br1 -j ACCEPT
iptables -t nat -I POSTROUTING -o eth0 -j SNAT --to $WANIP
iptables -I FORWARD -i br1 -m state --state NEW -j ACCEPT
iptables -I FORWARD -i br1 -o br0 -m state --state NEW -j DROP
iptables -I FORWARD -i br1 -d 192.168.1.0/24 -m state --state NEW -j DROP
iptables -I INPUT -i br1 -p tcp --dport telnet -j REJECT --reject-with tcp-reset
iptables -I INPUT -i br1 -p tcp --dport ssh -j REJECT --reject-with tcp-reset
iptables -I INPUT -i br1 -p tcp --dport www -j REJECT --reject-with tcp-reset
iptables -I INPUT -i br1 -p tcp --dport https -j REJECT --reject-with tcp-reset

killall eapd
eapd
Have a look here.
 
Code:
XXX@RT-AC88U:/tmp/home/root# /jffs/scripts/services-start
-sh: /jffs/scripts/services-start: not found
You tried to execute the file as it's own command, try
Code:
sh /jffs/scripts/services-start
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top