Created
October 13, 2021 10:26
-
-
Save xueliu/ff46e7b833e7d5f9cee71f83df75e836 to your computer and use it in GitHub Desktop.
BuildRoot vexpress-a9 boot from NFS ifdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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