OSDN Git Service

hostnamectl
authorpaperbenni <paperbenni@gmail.com>
Tue, 19 May 2020 15:34:46 +0000 (17:34 +0200)
committerpaperbenni <paperbenni@gmail.com>
Tue, 19 May 2020 15:34:46 +0000 (17:34 +0200)
depend/system.sh
network/network.sh

index fe762d4..65ad260 100755 (executable)
@@ -21,6 +21,7 @@ while ! pacman -S --noconfirm --needed \
     alsa-utils \
     usbutils \
     lightdm-gtk-greeter \
+    inetutils \
     xdg-desktop-portal-gtk \
     grub; do
 
index b9a596d..bee022e 100755 (executable)
@@ -7,6 +7,7 @@ echo "$NEWHOSTNAME" >/etc/hostname
 echo "127.0.0.1 localhost" >/etc/hosts
 echo "::1 localhost" >>/etc/hosts
 echo "127.0.1.1 $NEWHOSTNAME.localdomain $NEWHOSTNAME" >>/etc/hosts
+hostnamectl set-hostname "$NEWHOSTNAME"
 
 pacman -S --noconfirm networkmanager
 systemctl enable NetworkManager