I thought about trying this Viqsis method of not using any script. I noticed that sconf made two remarks about the code, and I think I understood the first about apostrophe (the last six lines should end like %k'" (apostrophe and quotation mark)), but where should I add the "ifconfig %k up;" part? Should it read like? Code: KERNEL=="bnep5", ACTION=="add", RUN+="/bin/sh -c '/usr/bin/ifconfig %k up; brctl addif pan0 %k'"
KERNEL=="bnep5", ACTION=="add", RUN+="/bin/sh -c '/usr/bin/ifconfig %k up; brctl addif pan0 %k'"