mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
misc: cleanup
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
281a92970a
commit
6f70907a3a
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env ash
|
||||
#
|
||||
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
|
||||
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium>
|
||||
#
|
||||
# This is free software, licensed under the MIT License.
|
||||
# See /LICENSE for more information.
|
||||
@ -76,7 +76,7 @@ EOF
|
||||
|
||||
# error message
|
||||
if [ ! -b /dev/synoboot ] || [ ! -b /dev/synoboot1 ] || [ ! -b /dev/synoboot2 ] || [ ! -b /dev/synoboot3 ]; then
|
||||
sed -i 's/c("welcome","desc_install")/"Error: The Bootloader Disk is not successfully mounted! The Installation will fail!!!"/' /usr/syno/web/main.js
|
||||
sed -i 's/c("welcome","desc_install")/"Error: The bootloader disk is not successfully mounted, the installation will fail."/' /usr/syno/web/main.js
|
||||
fi
|
||||
|
||||
# recovery.cgi
|
||||
@ -208,7 +208,7 @@ elif [ "${1}" = "late" ]; then
|
||||
|
||||
# sdcard
|
||||
cp -f /tmpRoot/usr/lib/udev/script/sdcard.sh /tmpRoot/usr/lib/udev/script/sdcard.sh.bak
|
||||
echo -en '#!/bin/sh\nexit 0\n' > /tmpRoot/usr/lib/udev/script/sdcard.sh
|
||||
echo -en '#!/bin/sh\nexit 0\n' >/tmpRoot/usr/lib/udev/script/sdcard.sh
|
||||
|
||||
# network
|
||||
rm -vf /tmpRoot/usr/lib/modules-load.d/70-network*.conf
|
||||
@ -234,22 +234,7 @@ elif [ "${1}" = "late" ]; then
|
||||
echo '[{"feed":"https://spk7.imnks.com","name":"imnks"},{"feed":"https://packages.synocommunity.com","name":"synocommunity"}]' >/tmpRoot/usr/syno/etc/packages/feeds
|
||||
fi
|
||||
|
||||
# syslog-ng
|
||||
if [ -f /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf ]; then
|
||||
cp -vfp /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf.bak
|
||||
sed -i 's/destination(d_scemd)/flags(final)/g' /tmpRoot/etc.defaults/syslog-ng/patterndb.d/scemd.conf
|
||||
else
|
||||
echo "scemd.conf does not exist."
|
||||
fi
|
||||
|
||||
if [ -f /tmpRoot/etc.defaults/syslog-ng/patterndb.d/synosystemd.conf ]; then
|
||||
cp -vfp /tmpRoot/etc.defaults/syslog-ng/patterndb.d/synosystemd.conf /tmpRoot/etc.defaults/syslog-ng/patterndb.d/synosystemd.conf.bak
|
||||
sed -i 's/destination(d_synosystemd)/flags(final)/g; s/destination(d_systemd)/flags(final)/g' /tmpRoot/etc.defaults/syslog-ng/patterndb.d/synosystemd.conf
|
||||
else
|
||||
echo "synosystemd.conf does not exist."
|
||||
fi
|
||||
|
||||
# copy loader-reboot.sh
|
||||
cp -vf /usr/bin/loader-reboot.sh /tmpRoot/usr/bin
|
||||
cp -vf /usr/bin/grub-editenv /tmpRoot/usr/bin
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user