Kaynağa Gözat

Update ipv4-ipv6.sh

molon 4 yıl önce
ebeveyn
işleme
8e9fd0b550
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      scripts/ipv4-ipv6.sh

+ 1 - 1
scripts/ipv4-ipv6.sh

@@ -233,7 +233,7 @@ gen_static >$WORKDIR/boot_static.sh
 
 
 BOOTRCFILE="$WORKDIR/boot_rc.sh"
 BOOTRCFILE="$WORKDIR/boot_rc.sh"
 
 
-REGISTER_LOGIC="bash ${WORKDIR}/boot_ifconfig.sh"
+REGISTER_LOGIC="systemctl restart network && bash ${WORKDIR}/boot_ifconfig.sh"
 if [[ $STATIC == "yes" ]]; then
 if [[ $STATIC == "yes" ]]; then
     REGISTER_LOGIC="bash ${WORKDIR}/boot_static.sh && systemctl restart network"
     REGISTER_LOGIC="bash ${WORKDIR}/boot_static.sh && systemctl restart network"
 fi
 fi