# parameter was in the header, or specified by options
[ -z "$bootfile" ] && bootfile=${boot_file}
- mac=$(< /sys/class/net/$interface/address)
+ mac=$(cat /sys/class/net/$interface/address)
paramstr=''
# Collect relevant DHCP response parameters into $paramstr
- for name in pxeconffile bootfile mac ip siaddr serverid tftp
+ for name in pxeconffile pxepathprefix bootfile mac ip siaddr \
+ serverid tftp
do
value=$(eval "echo \${$name}")
[ -n "$value" ] || continue;
paramstr="$paramstr $name=$value"
done
- pb-event dhcp@{interface} $paramstr
+ pb-event dhcp@${interface} $paramstr
# Check if an explicit config file present
if [ -n "${conffile}" ]
paramstr="$paramstr $name=$value"
done
- pb-event add@{interface} $paramstr
+ pb-event add@${interface} $paramstr
}
pb_remove () {