mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
sspatch: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
18e068ede8
commit
93031ee8e3
@ -31,7 +31,7 @@ if [ "${1}" = "late" ]; then
|
|||||||
ENTRIES=("0.0.0.0 synosurveillance.synology.com")
|
ENTRIES=("0.0.0.0 synosurveillance.synology.com")
|
||||||
for ENTRY in "${ENTRIES[@]}"
|
for ENTRY in "${ENTRIES[@]}"
|
||||||
do
|
do
|
||||||
if [ -f /tmpRoot/etc/hosts ]; then
|
if [ -f "/tmpRoot/etc/hosts" ]; then
|
||||||
# Check if the entry is already in the file
|
# Check if the entry is already in the file
|
||||||
if grep -Fxq "${ENTRY}" /tmpRoot/etc/hosts; then
|
if grep -Fxq "${ENTRY}" /tmpRoot/etc/hosts; then
|
||||||
echo "Entry ${ENTRY} already exists"
|
echo "Entry ${ENTRY} already exists"
|
||||||
@ -40,7 +40,7 @@ if [ "${1}" = "late" ]; then
|
|||||||
echo "${ENTRY}" >> /tmpRoot/etc/hosts
|
echo "${ENTRY}" >> /tmpRoot/etc/hosts
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -f /tmpRoot/etc.defaults/hosts ]; then
|
if [ -f "/tmpRoot/etc.defaults/hosts" ]; then
|
||||||
if grep -Fxq "${ENTRY}" /tmpRoot/etc.defaults/hosts; then
|
if grep -Fxq "${ENTRY}" /tmpRoot/etc.defaults/hosts; then
|
||||||
echo "Entry ${ENTRY} already exists"
|
echo "Entry ${ENTRY} already exists"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user