RT-AC86U, Merlin 386.1_2.
I want LAN port (eth1 - eth4) to be disabled after router reboot. I did the following:
1) "Enable JFFS custom scripts and configs" was set to "yes".
2) Created services-start and disablelan scripts in /jffs/scripts directory. Make the script executable.
The scripts work fine if I run them from CLI. However, they didn't seem to work if I reboot the router with "reboot" command (i.e. eth1 - eth4 was not disabled after reboot). What did I do wrong? Thanks!
admin@RT-AC86U-76C8:/jffs/scripts# ls -l
-rwxr-xr-x 1 admin root 77 Mar 10 20:57 disablelan
-rwxr-xr-x 1 admin root 59 Mar 10 21:15 services-start
admin@RT-AC86U-76C8:/jffs/scripts#
admin@RT-AC86U-76C8:/jffs/scripts# cat services-start
#!/bin/sh
# Disable LAN port 1-4
/jffs/scripts/disablelan
admin@RT-AC86U-76C8:/jffs/scripts#
admin@RT-AC86U-76C8:/jffs/scripts# cat disablelan
ifconfig eth1 down
ifconfig eth2 down
ifconfig eth3 down
ifconfig eth4 down
admin@RT-AC86U-76C8:/jffs/scripts#
I want LAN port (eth1 - eth4) to be disabled after router reboot. I did the following:
1) "Enable JFFS custom scripts and configs" was set to "yes".
2) Created services-start and disablelan scripts in /jffs/scripts directory. Make the script executable.
The scripts work fine if I run them from CLI. However, they didn't seem to work if I reboot the router with "reboot" command (i.e. eth1 - eth4 was not disabled after reboot). What did I do wrong? Thanks!
admin@RT-AC86U-76C8:/jffs/scripts# ls -l
-rwxr-xr-x 1 admin root 77 Mar 10 20:57 disablelan
-rwxr-xr-x 1 admin root 59 Mar 10 21:15 services-start
admin@RT-AC86U-76C8:/jffs/scripts#
admin@RT-AC86U-76C8:/jffs/scripts# cat services-start
#!/bin/sh
# Disable LAN port 1-4
/jffs/scripts/disablelan
admin@RT-AC86U-76C8:/jffs/scripts#
admin@RT-AC86U-76C8:/jffs/scripts# cat disablelan
ifconfig eth1 down
ifconfig eth2 down
ifconfig eth3 down
ifconfig eth4 down
admin@RT-AC86U-76C8:/jffs/scripts#