OpenWrt Forum Archive

Topic: Having a problem executing a script (any help will be appreciated)

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

-ash: /etc/init.d/clonemac: Permission denied

(Last edited by noviceuserhere on 21 May 2017, 20:35)

Executable ?

I created a file and named it clonemac and put it in etc,/init.d and now im trying to execute/enable it in putty/command line

These are the contents that i put in it: (clone mac)

START=94
STOP=15

start() {
    ifconfig wlan0 down
    ifconfig wlan0 hw ether 8A:D3:A3:4C:18:3C
    ifconfig wlan0 up
}

stop() {
    echo "Stop."
}

(Last edited by noviceuserhere on 21 May 2017, 21:00)

Nvm i got it, just had to change the properties of the file

The discussion might have continued from here.