Hi,

I was just wondering why the execute bit for board.d subfiles is set.

In package/base-files/files/bin/board_detect:
[ -d "/etc/board.d/" -a ! -s "$CFG" ] && {
        for a in `ls /etc/board.d/*`; do
                [ -x $a ] || continue;
                $(. $a)
        done
}

So, to me it looks like the files are only sourced (preceding dot) and thus 
both the execute check as well as the execute bit are not required?

Despite, can someone explain me the purpose of the surrounding $() for $(. $a) ?

Best

Adrian

Attachment: openpgp-digital-signature.asc
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to