This commit is contained in:
陆柯 2023-09-21 21:09:40 +08:00
parent 682265fdb2
commit b7e8448582
2 changed files with 3 additions and 2 deletions

1
ip-local.sh Normal file
View File

@ -0,0 +1 @@
echo `hostname -I` | awk '{print $1;}'

View File

@ -1,6 +1,6 @@
echo "Binding ipv6 to Oracle Cloud debian instance after configuring ipv6 (https://sunpma.com/1051.html)"
echo "If it failes, try 'sudo ifconfig' to get the correct nic name, because ubunto use different names."
echo "If there is no 'ifconfig', run 'sudo apt install net-tools" at first"
echo "If it failes, try 'sudo ifconfig' to get the correct nic name, because ubuntu use different names."
echo "If there is no 'ifconfig', run 'sudo apt install net-tools' at first"
echo "You can also reboot to automatically bind ipv6"
if [ `dpkg --print-architecture` = 'arm64']