Looking at the hook script, I see the record separator is ', |'
if [ -n "${new_classless_static_routes}" ]; then IFS=', |'
And then, each entry is either 0 (default route)
or, it's split on '.'
if [ ${target} = "0" ]; then
new_routers="${static_routes[$i+1]}"
continue
else
prefix=${target%%.*}
target=${target#*.}
IFS="." target_arr=(${target})
unset IFS
((pads=4-${#target_arr[@]}))
for j in $(seq $pads); do target="${target}.0"
done
fi
Looking at the hook script, I see the record separator is ', |'
if [ -n "${new_ classless_ static_ routes} " ]; then
IFS=' , |'
And then, each entry is either 0 (default route)
or, it's split on '.'
if [ ${target} = "0" ]; then routers= "${static_ routes[ $i+1]}" ${target% %.*} ${target# *.} arr=(${ target} ) 4-${#target_ arr[@]} ))
target= "${target} .0"
new_
continue
else
prefix=
target=
IFS="." target_
unset IFS
((pads=
for j in $(seq $pads); do
done
fi