Update Waku.sh

This commit is contained in:
sdohuajia 2024-07-30 14:32:30 +08:00 committed by GitHub
parent f7f4f73f2f
commit 26fcfa6c0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

10
Waku.sh
View File

@ -1,5 +1,15 @@
#!/bin/bash #!/bin/bash
# 检查是否以root用户运行脚本
if [ "$(id -u)" != "0" ]; then
echo "此脚本需要以root用户权限运行。"
echo "请尝试使用 'sudo -i' 命令切换到root用户然后再次运行此脚本。"
exit 1
fi
# 脚本保存路径
SCRIPT_PATH="$HOME/Waku.sh"
# 主菜单函数 # 主菜单函数
function main_menu() { function main_menu() {
while true; do while true; do