Skip to content

Instantly share code, notes, and snippets.

@xueliu
Created October 13, 2021 10:26
Show Gist options
  • Save xueliu/ff46e7b833e7d5f9cee71f83df75e836 to your computer and use it in GitHub Desktop.
Save xueliu/ff46e7b833e7d5f9cee71f83df75e836 to your computer and use it in GitHub Desktop.
BuildRoot vexpress-a9 boot from NFS ifdown
#!/bin/sh
set -x
if [ -n "$1" ];then
ip link set ${1} down
ip link set ${SWITCH} down
ip link delete dev ${SWITCH}
ip link delete dev ${1}
ip address add ${HOST_IP} dev ${ETHERNET_PORT}
exit 0
else
echo "Error: no interface specified"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment