I'm getting an error in OpenWRT Attitude Adjustment that says:

-ash: brctl: not found

when I run

brctl addif br-lan mesh0

I tried:

opkg update
opkg install brctl

But I got this error:

Unknown package brctl

Is brctl in a larger package? If so, what package do I need to install use it?

Also, for future reference, is there a manual or something that lists what functions are in what packages?


  • This questions should go to a search engine. Here is a hint: packages.debian.org/cgi-bin/… – ott-- Jul 22 '15 at 20:16
  • Thanks, I'll try that. I have been searching Google but I've been finding a lot of conflicting info. One Openwrt ticket said the problem was fixed by going to another OS. An Openwrt wiki had some brctl patches but not one package. I just wanted to keep my question short since it seemed fairly straightforward. I never can find the balance between too much and too little info on stack exchange sites. – user461262 Jul 22 '15 at 20:36

Unfortunately OpenWRT information on packages can be quite sketchy and opkg doesn't have a facility to search for a file in packages that are not yet installed, which doesn't help.

I don't have access to a system running Attitude Adjustment (12.09), but on my routers running Barrier Breaker (14.07), brctl is provided by BusyBox:

# opkg search /usr/sbin/brctl
busybox - 1.22.1-2
# ls -l /usr/sbin/brctl
lrwxrwxrwx   1 root root  17 Oct  2  2014 /usr/sbin/brctl -> ../../bin/busybox

I believe it should be the same on Attitude Adjustment but some searching revealed that a full version of brctl is available in the bridge package. To install:

# opkg update
# opkg install bridge

If you did have a brctl symlink in /usr/sbin, you'd need to remove it before installing though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.