mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-10-04 04:14:36 +08:00
Update InstallNET.sh
This commit is contained in:
parent
776b34f2e6
commit
92190f8ddd
1 changed files with 7 additions and 7 deletions
|
@ -290,7 +290,7 @@ while [[ $# -ge 1 ]]; do
|
||||||
IncFirmware="1"
|
IncFirmware="1"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-cloudkernel)
|
--cloudkernel)
|
||||||
shift
|
shift
|
||||||
setCloudKernel="$1"
|
setCloudKernel="$1"
|
||||||
shift
|
shift
|
||||||
|
@ -1402,8 +1402,13 @@ function checkDIST() {
|
||||||
fi
|
fi
|
||||||
# Alpine Linux releases reference: https://alpinelinux.org/releases/
|
# Alpine Linux releases reference: https://alpinelinux.org/releases/
|
||||||
[[ "$DIST" != "edge" && ! "$DIST" =~ "v" ]] && DIST="v""$DIST"
|
[[ "$DIST" != "edge" && ! "$DIST" =~ "v" ]] && DIST="v""$DIST"
|
||||||
|
if [[ "$setCloudKernel" == "" ]]; then
|
||||||
|
[[ -n "$virtWhat" ]] && virtualizationStatus='1' || virtualizationStatus='0'
|
||||||
|
elif [[ "$setCloudKernel" == "1" ]]; then
|
||||||
|
virtualizationStatus='1'
|
||||||
|
fi
|
||||||
# Virtual linux kernel of "vmlinuz-virt" of Alpine is unable to probe modules of IPv6 at the beginning so that "modloop" can't be downloaded and loaded!
|
# Virtual linux kernel of "vmlinuz-virt" of Alpine is unable to probe modules of IPv6 at the beginning so that "modloop" can't be downloaded and loaded!
|
||||||
if [[ -n "$virtWhat" && "$IPStackType" != "IPv6Stack" ]]; then
|
if [[ "$virtualizationStatus" == "1" && "$IPStackType" != "IPv6Stack" ]]; then
|
||||||
InitrdName="initramfs-virt"
|
InitrdName="initramfs-virt"
|
||||||
VmLinuzName="vmlinuz-virt"
|
VmLinuzName="vmlinuz-virt"
|
||||||
ModLoopName="modloop-virt"
|
ModLoopName="modloop-virt"
|
||||||
|
@ -3871,11 +3876,6 @@ elif [[ "$linux_relese" == 'alpinelinux' ]]; then
|
||||||
fi
|
fi
|
||||||
writeMultipleIpv4Addresses "$iAddrNum"
|
writeMultipleIpv4Addresses "$iAddrNum"
|
||||||
writeMultipleIpv6Addresses "$i6AddrNum"
|
writeMultipleIpv6Addresses "$i6AddrNum"
|
||||||
if [[ "$setCloudKernel" == "" ]]; then
|
|
||||||
[[ -n "$virtWhat" ]] && virtualizationStatus='1' || virtualizationStatus='0'
|
|
||||||
elif [[ "$setCloudKernel" == "1" ]]; then
|
|
||||||
virtualizationStatus='1'
|
|
||||||
fi
|
|
||||||
if [[ "$setMotd" == "1" ]]; then
|
if [[ "$setMotd" == "1" ]]; then
|
||||||
ModifyMOTD=$(echo -e "rm -rf \$sysroot/etc/motd
|
ModifyMOTD=$(echo -e "rm -rf \$sysroot/etc/motd
|
||||||
wget --no-check-certificate -O \$sysroot/etc/profile.d/motd.sh ${AlpineMotd}
|
wget --no-check-certificate -O \$sysroot/etc/profile.d/motd.sh ${AlpineMotd}
|
||||||
|
|
Loading…
Add table
Reference in a new issue