Linx's Solution

bad argument #1 to 'pairs' (table expected got nil)

OPENWRT