-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
39 lines (35 loc) · 1.19 KB
/
install.sh
File metadata and controls
39 lines (35 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# WrtMate Installation Script
# Automates OpenWrt setup and configuration
#
# Copyright (c) 2025 Alireza Maleky
# License: MIT
#
# Usage:
# bash -c "$(wget -qO- https://raw.githubusercontent.com/amaleky/WrtMate/main/install.sh)"
#
# For more information, see the README.md
readonly REPO_URL="https://raw.githubusercontent.com/amaleky/WrtMate/main"
export REPO_URL
menu() {
local PS3="Enter your choice [1-6]: "
local options=("Setup System" "Configure Multi-WAN" "Install PassWall" "Configure USB" "Factory Reset" "Exit")
select opt in "${options[@]}"; do
case "$REPLY" in
1) source <(wget -qO- "${REPO_URL}/scripts/setup.sh") ;;
2) source <(wget -qO- "${REPO_URL}/scripts/mwan.sh") ;;
3) source <(wget -qO- "${REPO_URL}/scripts/passwall.sh") ;;
4) source <(wget -qO- "${REPO_URL}/scripts/usb.sh") ;;
5) source <(wget -qO- "${REPO_URL}/scripts/setup.sh") upgrade_firmware ;;
6)
success "Exiting WrtMate installer. Thank you for using WrtMate!"
exit 0
;;
*) warning "Invalid option $REPLY" ;;
esac
echo # Add a blank line for readability
menu
done
}
source <(wget -qO- "${REPO_URL}/scripts/utils.sh")
menu "$@"