first add

This commit is contained in:
taotao 2024-10-11 23:43:35 +08:00
parent e2c270c1b6
commit ee7d4be567
7 changed files with 73 additions and 73 deletions

View File

@ -104,7 +104,7 @@ ensure_entware_installed() {
remount_rw remount_rw
if [ ! -f "/opt/bin/opkg" ]; then if [ ! -f "/opt/bin/opkg" ]; then
echo -e "\e[1;32mInstalling Entware/OPKG\e[0m" echo -e "\e[1;32mInstalling Entware/OPKG\e[0m"
cd /tmp && wget --no-check-certificate -O installentware.sh "https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/installentware.sh" && chmod +x installentware.sh && ./installentware.sh cd /tmp && wget --no-check-certificate -O installentware.sh "http://gitea.hapyle.work:33000/taotao/webui/raw/development/installentware.sh" && chmod +x installentware.sh && ./installentware.sh
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo -e "\e[1;31mEntware/OPKG installation failed. Please check your internet connection or the repository URL.\e[0m" echo -e "\e[1;31mEntware/OPKG installation failed. Please check your internet connection or the repository URL.\e[0m"
exit 1 exit 1
@ -303,8 +303,8 @@ set_simpleadmin_passwd(){
ensure_entware_installed ensure_entware_installed
opkg update opkg update
opkg install libaprutil opkg install libaprutil
wget --no-check-certificate -O /usrdata/root/bin/htpasswd https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/htpasswd && chmod +x /usrdata/root/bin/htpasswd wget --no-check-certificate -O /usrdata/root/bin/htpasswd http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/htpasswd && chmod +x /usrdata/root/bin/htpasswd
wget --no-check-certificate -O /usrdata/root/bin/simplepasswd https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/simplepasswd && chmod +x /usrdata/root/bin/simplepasswd wget --no-check-certificate -O /usrdata/root/bin/simplepasswd http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/simplepasswd && chmod +x /usrdata/root/bin/simplepasswd
echo -e "\e[1;32mTo change your simpleadmin (admin) password in the future...\e[0m" echo -e "\e[1;32mTo change your simpleadmin (admin) password in the future...\e[0m"
echo -e "\e[1;32mIn the console type simplepasswd and press enter\e[0m" echo -e "\e[1;32mIn the console type simplepasswd and press enter\e[0m"
/usrdata/root/bin/simplepasswd /usrdata/root/bin/simplepasswd
@ -336,20 +336,20 @@ install_simple_admin() {
echo -e "\e[1;31m2) Installing simpleadmin from the development test branch\e[0m" echo -e "\e[1;31m2) Installing simpleadmin from the development test branch\e[0m"
mkdir /usrdata/simpleupdates > /dev/null 2>&1 mkdir /usrdata/simpleupdates > /dev/null 2>&1
mkdir /usrdata/simpleupdates/scripts > /dev/null 2>&1 mkdir /usrdata/simpleupdates/scripts > /dev/null 2>&1
wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_socat-at-bridge.sh https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleupdates/scripts/update_socat-at-bridge.sh && chmod +x /usrdata/simpleupdates/scripts/update_socat-at-bridge.sh wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_socat-at-bridge.sh http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleupdates/scripts/update_socat-at-bridge.sh && chmod +x /usrdata/simpleupdates/scripts/update_socat-at-bridge.sh
echo -e "\e[1;32mInstalling/updating dependency: socat-at-bridge\e[0m" echo -e "\e[1;32mInstalling/updating dependency: socat-at-bridge\e[0m"
echo -e "\e[1;32mPlease Wait....\e[0m" echo -e "\e[1;32mPlease Wait....\e[0m"
/usrdata/simpleupdates/scripts/update_socat-at-bridge.sh /usrdata/simpleupdates/scripts/update_socat-at-bridge.sh
echo -e "\e[1;32m Dependency: socat-at-bridge has been updated/installed.\e[0m" echo -e "\e[1;32m Dependency: socat-at-bridge has been updated/installed.\e[0m"
sleep 1 sleep 1
wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_simplefirewall.sh https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleupdates/scripts/update_simplefirewall.sh && chmod +x /usrdata/simpleupdates/scripts/update_simplefirewall.sh wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_simplefirewall.sh http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleupdates/scripts/update_simplefirewall.sh && chmod +x /usrdata/simpleupdates/scripts/update_simplefirewall.sh
echo -e "\e[1;32mInstalling/updating dependency: simplefirewall\e[0m" echo -e "\e[1;32mInstalling/updating dependency: simplefirewall\e[0m"
echo -e "\e[1;32mPlease Wait....\e[0m" echo -e "\e[1;32mPlease Wait....\e[0m"
/usrdata/simpleupdates/scripts/update_simplefirewall.sh /usrdata/simpleupdates/scripts/update_simplefirewall.sh
echo -e "\e[1;32m Dependency: simplefirewall has been updated/installed.\e[0m" echo -e "\e[1;32m Dependency: simplefirewall has been updated/installed.\e[0m"
sleep 1 sleep 1
set_simpleadmin_passwd set_simpleadmin_passwd
wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_simpleadmin.sh https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleupdates/scripts/update_simpleadmin.sh && chmod +x /usrdata/simpleupdates/scripts/update_simpleadmin.sh wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_simpleadmin.sh http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleupdates/scripts/update_simpleadmin.sh && chmod +x /usrdata/simpleupdates/scripts/update_simpleadmin.sh
echo -e "\e[1;32mInstalling/updating: Simpleadmin content\e[0m" echo -e "\e[1;32mInstalling/updating: Simpleadmin content\e[0m"
echo -e "\e[1;32mPlease Wait....\e[0m" echo -e "\e[1;32mPlease Wait....\e[0m"
/usrdata/simpleupdates/scripts/update_simpleadmin.sh /usrdata/simpleupdates/scripts/update_simpleadmin.sh
@ -488,7 +488,7 @@ echo -e "\e[1;31m2) Installing tailscale from the $GITTREE branch\e[0m"
ensure_entware_installed ensure_entware_installed
mkdir /usrdata/simpleupdates > /dev/null 2>&1 mkdir /usrdata/simpleupdates > /dev/null 2>&1
mkdir /usrdata/simpleupdates/scripts > /dev/null 2>&1 mkdir /usrdata/simpleupdates/scripts > /dev/null 2>&1
wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_tailscale.sh https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleupdates/scripts/update_tailscale.sh && chmod +x /usrdata/simpleupdates/scripts/update_tailscale.sh wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_tailscale.sh http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleupdates/scripts/update_tailscale.sh && chmod +x /usrdata/simpleupdates/scripts/update_tailscale.sh
echo -e "\e[1;32mInstalling/updating: Tailscale\e[0m" echo -e "\e[1;32mInstalling/updating: Tailscale\e[0m"
echo -e "\e[1;32mPlease Wait....\e[0m" echo -e "\e[1;32mPlease Wait....\e[0m"
remount_rw remount_rw
@ -514,8 +514,8 @@ configure_tailscale() {
1) 1)
remount_rw remount_rw
cd /lib/systemd/system/ cd /lib/systemd/system/
wget --no-check-certificate -O tailscale-webui.service https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/tailscale/systemd/tailscale-webui.service wget --no-check-certificate -O tailscale-webui.service http://gitea.hapyle.work:33000/taotao/webui/raw/development/tailscale/systemd/tailscale-webui.service
wget --no-check-certificate -O tailscale-webui-trigger.service https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/tailscale/systemd/tailscale-webui-trigger.service wget --no-check-certificate -O tailscale-webui-trigger.service http://gitea.hapyle.work:33000/taotao/webui/raw/development/tailscale/systemd/tailscale-webui-trigger.service
ln -sf /lib/systemd/system/tailscale-webui-trigger.service /lib/systemd/system/multi-user.target.wants/ ln -sf /lib/systemd/system/tailscale-webui-trigger.service /lib/systemd/system/multi-user.target.wants/
systemctl daemon-reload systemctl daemon-reload
echo "Tailscale Web UI Enabled" echo "Tailscale Web UI Enabled"
@ -756,7 +756,7 @@ install_sshd() {
ensure_entware_installed ensure_entware_installed
mkdir /usrdata/simpleupdates > /dev/null 2>&1 mkdir /usrdata/simpleupdates > /dev/null 2>&1
mkdir /usrdata/simpleupdates/scripts > /dev/null 2>&1 mkdir /usrdata/simpleupdates/scripts > /dev/null 2>&1
wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_sshd.sh https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleupdates/scripts/update_sshd.sh && chmod +x /usrdata/simpleupdates/scripts/update_sshd.sh wget --no-check-certificate -O /usrdata/simpleupdates/scripts/update_sshd.sh http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleupdates/scripts/update_sshd.sh && chmod +x /usrdata/simpleupdates/scripts/update_sshd.sh
echo -e "\e[1;32mInstalling/updating: SSHd\e[0m" echo -e "\e[1;32mInstalling/updating: SSHd\e[0m"
echo -e "\e[1;32mPlease Wait....\e[0m" echo -e "\e[1;32mPlease Wait....\e[0m"
/usrdata/simpleupdates/scripts/update_sshd.sh /usrdata/simpleupdates/scripts/update_sshd.sh
@ -768,7 +768,7 @@ install_sshd() {
ARCH=$(uname -a) ARCH=$(uname -a)
if echo "$ARCH" | grep -q "aarch64"; then if echo "$ARCH" | grep -q "aarch64"; then
cd /tmp && wget --no-check-certificate -O RM55x_rcPCIe_toolkit.sh https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development-SDXPINN/RM55x_rcPCIe_toolkit.sh && chmod +x RM55x_rcPCIe_toolkit.sh && ./RM55x_rcPCIe_toolkit.sh && cd / cd /tmp && wget --no-check-certificate -O RM55x_rcPCIe_toolkit.sh http://gitea.hapyle.work:33000/taotao/webui/raw/development-SDXPINN/RM55x_rcPCIe_toolkit.sh && chmod +x RM55x_rcPCIe_toolkit.sh && ./RM55x_rcPCIe_toolkit.sh && cd /
exit 0 exit 0
elif echo "$ARCH" | grep -q "armv7l"; then elif echo "$ARCH" | grep -q "armv7l"; then
# Continue if architecture is armv7l # Continue if architecture is armv7l
@ -940,7 +940,7 @@ echo " :+##+. "
mkdir /usrdata/root mkdir /usrdata/root
mkdir /usrdata/root/bin mkdir /usrdata/root/bin
cd /usrdata/root/bin cd /usrdata/root/bin
wget --no-check-certificate -O fast https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/fast_linux_arm && chmod +x fast wget --no-check-certificate -O fast http://gitea.hapyle.work:33000/taotao/webui/raw/development/fast_linux_arm && chmod +x fast
cd / cd /
ln -sf /usrdata/root/bin/fast /bin ln -sf /usrdata/root/bin/fast /bin
remount_ro remount_ro

View File

@ -34,8 +34,8 @@ toolkit_menu() {
read -p "Select an option (1-3): " option read -p "Select an option (1-3): " option
case "$option" in case "$option" in
1) cd /tmp && wget --no-check-certificate -O RMxxx_rgmii_toolkit.sh https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/RMxxx_rgmii_toolkit.sh && chmod +x RMxxx_rgmii_toolkit.sh && ./RMxxx_rgmii_toolkit.sh && cd / ;; 1) cd /tmp && wget --no-check-certificate -O RMxxx_rgmii_toolkit.sh http://gitea.hapyle.work:33000/taotao/webui/raw/development/RMxxx_rgmii_toolkit.sh && chmod +x RMxxx_rgmii_toolkit.sh && ./RMxxx_rgmii_toolkit.sh && cd / ;;
2) cd /tmp && wget --no-check-certificate -O RMxxx_rgmii_toolkit.sh https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/RMxxx_rgmii_toolkit.sh && chmod +x RMxxx_rgmii_toolkit.sh && ./RMxxx_rgmii_toolkit.sh && cd / ;; 2) cd /tmp && wget --no-check-certificate -O RMxxx_rgmii_toolkit.sh http://gitea.hapyle.work:33000/taotao/webui/raw/development/RMxxx_rgmii_toolkit.sh && chmod +x RMxxx_rgmii_toolkit.sh && ./RMxxx_rgmii_toolkit.sh && cd / ;;
3) break ;; 3) break ;;
*) echo "Invalid option. Please try again." ;; *) echo "Invalid option. Please try again." ;;
esac esac

View File

@ -110,8 +110,8 @@ install_lighttpd() {
systemctl stop lighttpd systemctl stop lighttpd
echo -e "\033[0;32mInstalling/Updating Lighttpd...\033[0m" echo -e "\033[0;32mInstalling/Updating Lighttpd...\033[0m"
mkdir -p "$SIMPLE_ADMIN_DIR" mkdir -p "$SIMPLE_ADMIN_DIR"
wget --no-check-certificate -O "$SIMPLE_ADMIN_DIR/lighttpd.conf" https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/lighttpd.conf wget --no-check-certificate -O "$SIMPLE_ADMIN_DIR/lighttpd.conf" http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/lighttpd.conf
wget --no-check-certificate -O "/lib/systemd/system/lighttpd.service" https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/systemd/lighttpd.service wget --no-check-certificate -O "/lib/systemd/system/lighttpd.service" http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/systemd/lighttpd.service
ln -sf "/lib/systemd/system/lighttpd.service" "/lib/systemd/system/multi-user.target.wants/" ln -sf "/lib/systemd/system/lighttpd.service" "/lib/systemd/system/multi-user.target.wants/"
echo "www-data ALL = (root) NOPASSWD: /usr/sbin/iptables, /usr/sbin/ip6tables, /usrdata/simplefirewall/ttl-override, /bin/echo, /bin/cat" > /opt/etc/sudoers.d/www-data echo "www-data ALL = (root) NOPASSWD: /usr/sbin/iptables, /usr/sbin/ip6tables, /usrdata/simplefirewall/ttl-override, /bin/echo, /bin/cat" > /opt/etc/sudoers.d/www-data
@ -139,56 +139,56 @@ echo -e "\e[1;31m2) Installing simpleadmin from the $GITTREE branch\e[0m"
mkdir $SIMPLE_ADMIN_DIR/www/css mkdir $SIMPLE_ADMIN_DIR/www/css
mkdir $SIMPLE_ADMIN_DIR/www/js mkdir $SIMPLE_ADMIN_DIR/www/js
cd $SIMPLE_ADMIN_DIR/systemd cd $SIMPLE_ADMIN_DIR/systemd
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/systemd/lighttpd.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/systemd/lighttpd.service
sleep 1 sleep 1
cd $SIMPLE_ADMIN_DIR/script cd $SIMPLE_ADMIN_DIR/script
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/script/ttl_script.sh wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/script/ttl_script.sh
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/script/remove_watchcat.sh wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/script/remove_watchcat.sh
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/script/create_watchcat.sh wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/script/create_watchcat.sh
sleep 1 sleep 1
cd $SIMPLE_ADMIN_DIR/console cd $SIMPLE_ADMIN_DIR/console
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/console/.profile wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/console/.profile
sleep 1 sleep 1
cd $SIMPLE_ADMIN_DIR/console/menu cd $SIMPLE_ADMIN_DIR/console/menu
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/console/menu/start_menu.sh wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/console/menu/start_menu.sh
ln -f $SIMPLE_ADMIN_DIR/console/menu/start_menu.sh /usrdata/root/bin/menu ln -f $SIMPLE_ADMIN_DIR/console/menu/start_menu.sh /usrdata/root/bin/menu
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/console/menu/sfirewall_settings.sh wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/console/menu/sfirewall_settings.sh
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/console/menu/start_menu.sh wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/console/menu/start_menu.sh
sleep 1 sleep 1
cd $SIMPLE_ADMIN_DIR/www cd $SIMPLE_ADMIN_DIR/www
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/deviceinfo.html wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/deviceinfo.html
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/favicon.ico wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/favicon.ico
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/index.html wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/index.html
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/network.html wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/network.html
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/settings.html wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/settings.html
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/sms.html wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/sms.html
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/scanner.html wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/scanner.html
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/watchcat.html wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/watchcat.html
sleep 1 sleep 1
cd $SIMPLE_ADMIN_DIR/www/js cd $SIMPLE_ADMIN_DIR/www/js
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/js/alpinejs.min.js wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/js/alpinejs.min.js
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/js/bootstrap.bundle.min.js wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/js/bootstrap.bundle.min.js
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/js/dark-mode.js wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/js/dark-mode.js
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/js/generate-freq-box.js wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/js/generate-freq-box.js
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/js/parse-settings.js wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/js/parse-settings.js
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/js/populate-checkbox.js wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/js/populate-checkbox.js
sleep 1 sleep 1
cd $SIMPLE_ADMIN_DIR/www/css cd $SIMPLE_ADMIN_DIR/www/css
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/css/bootstrap.min.css wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/css/bootstrap.min.css
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/css/styles.css wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/css/styles.css
sleep 1 sleep 1
cd $SIMPLE_ADMIN_DIR/www/cgi-bin cd $SIMPLE_ADMIN_DIR/www/cgi-bin
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/get_atcommand wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/get_atcommand
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/user_atcommand wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/user_atcommand
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/get_ping wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/get_ping
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/get_sms wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/get_sms
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/get_ttl_status wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/get_ttl_status
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/set_ttl wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/set_ttl
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/send_sms wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/send_sms
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/get_uptime wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/get_uptime
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/get_watchcat_status wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/get_watchcat_status
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/set_watchcat wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/set_watchcat
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/www/cgi-bin/watchcat_maker wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/www/cgi-bin/watchcat_maker
sleep 1 sleep 1
cd / cd /
chmod +x $SIMPLE_ADMIN_DIR/www/cgi-bin/* chmod +x $SIMPLE_ADMIN_DIR/www/cgi-bin/*
@ -205,10 +205,10 @@ echo -e "\e[1;31m2) Installing simpleadmin from the $GITTREE branch\e[0m"
install_ttyd() { install_ttyd() {
echo -e "\e[1;34mStarting ttyd installation process...\e[0m" echo -e "\e[1;34mStarting ttyd installation process...\e[0m"
cd $SIMPLE_ADMIN_DIR/console cd $SIMPLE_ADMIN_DIR/console
curl -L -o ttyd https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/ttyd.armhf && chmod +x ttyd curl -L -o ttyd http://gitea.hapyle.work:33000/taotao/webui/raw/development/ttyd.armhf && chmod +x ttyd
wget --no-check-certificate "https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/console/ttyd.bash" && chmod +x ttyd.bash wget --no-check-certificate "http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/console/ttyd.bash" && chmod +x ttyd.bash
cd $SIMPLE_ADMIN_DIR/systemd/ cd $SIMPLE_ADMIN_DIR/systemd/
wget --no-check-certificate "https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simpleadmin/systemd/ttyd.service" wget --no-check-certificate "http://gitea.hapyle.work:33000/taotao/webui/raw/development/simpleadmin/systemd/ttyd.service"
cp -f $SIMPLE_ADMIN_DIR/systemd/ttyd.service /lib/systemd/system/ cp -f $SIMPLE_ADMIN_DIR/systemd/ttyd.service /lib/systemd/system/
ln -sf /usrdata/simpleadmin/ttyd /bin ln -sf /usrdata/simpleadmin/ttyd /bin

View File

@ -76,14 +76,14 @@ install_simple_firewall() {
mount -o remount,rw / mount -o remount,rw /
mkdir -p "$SIMPLE_FIREWALL_DIR" mkdir -p "$SIMPLE_FIREWALL_DIR"
mkdir -p "$SIMPLE_FIREWALL_SYSTEMD_DIR" mkdir -p "$SIMPLE_FIREWALL_SYSTEMD_DIR"
wget --no-check-certificate -O "$SIMPLE_FIREWALL_DIR/simplefirewall.sh" https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simplefirewall/simplefirewall.sh wget --no-check-certificate -O "$SIMPLE_FIREWALL_DIR/simplefirewall.sh" http://gitea.hapyle.work:33000/taotao/webui/raw/development/simplefirewall/simplefirewall.sh
wget --no-check-certificate -O "$SIMPLE_FIREWALL_DIR/ttl-override" https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simplefirewall/ttl-override wget --no-check-certificate -O "$SIMPLE_FIREWALL_DIR/ttl-override" http://gitea.hapyle.work:33000/taotao/webui/raw/development/simplefirewall/ttl-override
wget --no-check-certificate -O "$SIMPLE_FIREWALL_DIR/ttlvalue" https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simplefirewall/ttlvalue wget --no-check-certificate -O "$SIMPLE_FIREWALL_DIR/ttlvalue" http://gitea.hapyle.work:33000/taotao/webui/raw/development/simplefirewall/ttlvalue
chmod 666 $SIMPLE_FIREWALL_DIR/ttlvalue chmod 666 $SIMPLE_FIREWALL_DIR/ttlvalue
chmod +x "$SIMPLE_FIREWALL_DIR/simplefirewall.sh" chmod +x "$SIMPLE_FIREWALL_DIR/simplefirewall.sh"
chmod +x "$SIMPLE_FIREWALL_DIR/ttl-override" chmod +x "$SIMPLE_FIREWALL_DIR/ttl-override"
wget --no-check-certificate -O "$SIMPLE_FIREWALL_SYSTEMD_DIR/simplefirewall.service" https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simplefirewall/systemd/simplefirewall.service wget --no-check-certificate -O "$SIMPLE_FIREWALL_SYSTEMD_DIR/simplefirewall.service" http://gitea.hapyle.work:33000/taotao/webui/raw/development/simplefirewall/systemd/simplefirewall.service
wget --no-check-certificate -O "$SIMPLE_FIREWALL_SYSTEMD_DIR/ttl-override.service" https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/simplefirewall/systemd/ttl-override.service wget --no-check-certificate -O "$SIMPLE_FIREWALL_SYSTEMD_DIR/ttl-override.service" http://gitea.hapyle.work:33000/taotao/webui/raw/development/simplefirewall/systemd/ttl-override.service
cp -rf $SIMPLE_FIREWALL_SYSTEMD_DIR/* /lib/systemd/system cp -rf $SIMPLE_FIREWALL_SYSTEMD_DIR/* /lib/systemd/system
ln -sf "/lib/systemd/system/simplefirewall.service" "/lib/systemd/system/multi-user.target.wants/" ln -sf "/lib/systemd/system/simplefirewall.service" "/lib/systemd/system/multi-user.target.wants/"
ln -sf "/lib/systemd/system/ttl-override.service" "/lib/systemd/system/multi-user.target.wants/" ln -sf "/lib/systemd/system/ttl-override.service" "/lib/systemd/system/multi-user.target.wants/"

View File

@ -85,18 +85,18 @@ install_at_socat() {
mkdir $SOCAT_AT_DIR mkdir $SOCAT_AT_DIR
cd $SOCAT_AT_DIR cd $SOCAT_AT_DIR
mkdir $SOCAT_AT_SYSD_DIR mkdir $SOCAT_AT_SYSD_DIR
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/socat-armel-static wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/socat-armel-static
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/killsmd7bridge wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/killsmd7bridge
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/atcmd wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/atcmd
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/atcmd11 wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/atcmd11
cd $SOCAT_AT_SYSD_DIR cd $SOCAT_AT_SYSD_DIR
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/systemd_units/socat-smd11.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/systemd_units/socat-smd11.service
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/systemd_units/socat-smd11-from-ttyIN.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/systemd_units/socat-smd11-from-ttyIN.service
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/systemd_units/socat-smd11-to-ttyIN.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/systemd_units/socat-smd11-to-ttyIN.service
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/systemd_units/socat-killsmd7bridge.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/systemd_units/socat-killsmd7bridge.service
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/systemd_units/socat-smd7-from-ttyIN2.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/systemd_units/socat-smd7-from-ttyIN2.service
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/systemd_units/socat-smd7-to-ttyIN2.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/systemd_units/socat-smd7-to-ttyIN2.service
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/raw/development/socat-at-bridge/systemd_units/socat-smd7.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/raw/development/socat-at-bridge/systemd_units/socat-smd7.service
# Set execute permissions # Set execute permissions
cd $SOCAT_AT_DIR cd $SOCAT_AT_DIR

View File

@ -37,7 +37,7 @@ echo -e "\e[1;32mOpenSSH Server\e[0m"
remount_rw remount_rw
mkdir /usrdata/sshd mkdir /usrdata/sshd
wget --no-check-certificate -O /lib/systemd/system/sshd.service "https://gitee.com/haixinsc/quectel-rgmii-toolkit/blob/development/sshd/sshd.service" wget --no-check-certificate -O /lib/systemd/system/sshd.service "http://gitea.hapyle.work:33000/taotao/webui/blob/development/sshd/sshd.service"
ln -sf "/lib/systemd/system/sshd.service" "/lib/systemd/system/multi-user.target.wants/" ln -sf "/lib/systemd/system/sshd.service" "/lib/systemd/system/multi-user.target.wants/"
opkg install openssh-server-pam opkg install openssh-server-pam

View File

@ -85,8 +85,8 @@ install_update_tailscale() {
rm -rf /usrdata/tailscale_1.70.0_arm rm -rf /usrdata/tailscale_1.70.0_arm
echo "Downloading systemd files..." echo "Downloading systemd files..."
cd "$TAILSCALE_SYSD_DIR" cd "$TAILSCALE_SYSD_DIR"
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/blob/development/tailscale/systemd/tailscaled.service wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/blob/development/tailscale/systemd/tailscaled.service
wget --no-check-certificate https://gitee.com/haixinsc/quectel-rgmii-toolkit/blob/development/tailscale/systemd/tailscaled.defaults wget --no-check-certificate http://gitea.hapyle.work:33000/taotao/webui/blob/development/tailscale/systemd/tailscaled.defaults
sleep 2s sleep 2s
echo "Setting Permissions..." echo "Setting Permissions..."
chmod +x "$TAILSCALE_DIR/tailscaled" "$TAILSCALE_DIR/tailscale" chmod +x "$TAILSCALE_DIR/tailscaled" "$TAILSCALE_DIR/tailscale"