Update artix.sh

This commit is contained in:
exkc 2022-05-03 23:48:06 +08:00 committed by GitHub
parent 079c46767a
commit 118f128763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ echo "making $bin executable"
chmod +x $bin
echo "removing image for some space"
rm $tarball
echo 'nameserver 8.8.8.8'>./artix-fs/etc/resolv.conf
echo 'nameserver 45.90.30.100'>./artix-fs/etc/resolv.conf
touch ./artix-fs/root/.bashrc
cat > ./artix-fs/root/.bashrc << EOF
#!/bin/bash
@ -102,7 +102,7 @@ EOF
echo 'makeing fakeing /proc'
mkdir ./proc
cat > ./proc/version << EOF
Linux version 5.9.12-artix1-1 (linux@artixlinux) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Wed, 02 Dec 2020 22:03:38 +0000
Linux version 5.14.12-artix1-1 (linux@artixlinux) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Wed, 02 Dec 2022 22:03:38 +0000
EOF
cat > ./proc/stat << EOC
cpu 84663 6 28703 449941 118351 2015 1255 0 0 0