This commit is contained in:
xopenwrt
2023-12-18 00:58:23 +08:00
committed by GitHub
parent 1c7df148b4
commit 1ec68a728c
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
# AutoBuild Module by Xinb/Xinbyte <https://github.com/xopenwrt/X-OpenWrt-New>
# AutoBuild Functions
Get_Action_Info() {
echo "---------------------------- Soc Info | 🏅AMD Yes ----------------------------"
lscpu | grep "Model name"
lscpu | grep "CPU(s)"
echo "--------------------------------- Memory Info --------------------------------"
free -m
echo "---------------------------------- Disk Info ---------------------------------"
lsblk
echo "------------------------------- Disk Usage Info ------------------------------"
df -h
# Get IP Info
echo "------------------------------- IP Address Info ------------------------------"
IP=`curl ip.115115.xyz -s`
curl ip.115115.xyz -s
curl -s https://searchplugin.csdn.net/api/v1/ip/get?ip=${IP} | jq -r .data.address
}
Get_Release_Info() {
echo "------------------------------- Build Version Data ----------------------------"
echo ${NOW_DATA_VERSION}
echo "------------------------------ Build Kernel Version ---------------------------"
`cat ${OPENWRT_BUILD_DIR}/target/linux/x86/Makefile | grep KERNEL_PATCHVER:=`
}