From b7e844858254193dda5fa4bc48537034af581843 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Thu, 21 Sep 2023 21:09:40 +0800 Subject: [PATCH] u --- ip-local.sh | 1 + ipv6-dhcp.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 ip-local.sh diff --git a/ip-local.sh b/ip-local.sh new file mode 100644 index 0000000..f14791a --- /dev/null +++ b/ip-local.sh @@ -0,0 +1 @@ +echo `hostname -I` | awk '{print $1;}' diff --git a/ipv6-dhcp.sh b/ipv6-dhcp.sh index c7eb76a..4ae0fa7 100755 --- a/ipv6-dhcp.sh +++ b/ipv6-dhcp.sh @@ -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']