script
  exec >>/tmp/grail.log 2>&1
  set -x
  while read -r DEVICE
  do
    echo "ip link set dev $DEVICE up"
  done < <(ip link | awk '/^[0-9]/ && !/UP/ && gsub(/:/,""){print $2}')
  set
  env
end script
