forked from Xentrk/x3mRouting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mount_files_gui.sh
25 lines (23 loc) · 1.05 KB
/
mount_files_gui.sh
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
#!/bin/sh
####################################################################################################
# Script: mount_files_gui.sh
# VERSION=2.3.0
# Author: Xentrk
# Date: 1-September-2020
#
# Grateful:
# Thank you to @Martineau on snbforums.com for educating myself and others on Selective
# Routing techniques using Asuswrt-Merlin firmware.
#
#####################################################################################################
# Script Description:
# This script is called from /jffs/scripts/init-start.
# The script will mount files used by the Asuswrt-Merlin-Selective Routing project to override
# the firmware files.
#
#####################################################################################################
logger -t "($(basename "$0"))" $$ Starting Script Execution
if [ "$(df | grep -c "/www/Advanced_OpenVPNClient_Content.asp")" -eq 0 ]; then
mount -o bind /jffs/addons/x3mRouting/Advanced_OpenVPNClient_Content.asp /www/Advanced_OpenVPNClient_Content.asp
fi
logger -t "($(basename "$0"))" $$ Completed Script Execution