Running a script in OpenWrt

Hey folks,
I'm trying to run a script in openWrt, but now only I get to know that it doesn't have bash. So, how to run that script ?

opkg update
opkg install bash

Is there any other way to run without installing bash

Sure there is: Use the OpenWrt built in shell (ash).
Be aware that running a bash script on a non-bash shell might lead to unexpected results (aka: "Help, it doesn't work!").


For simple scripts, you will not notice the difference beteween ash and bash. Ash is a leightweigth clone of bash. You can also use the WebUI to start the script at bootup if that is what you want.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.