sed -i 's#/dev/null#/tmp/scemd.log#g' /etc.defaults/syslog-ng/patterndb.d/scemd.conf sed -i 's#/dev/null#/tmp/postgresql.log#g' /etc.defaults/syslog-ng/patterndb.d/postgresql.conf sed -i 's#/var/log/scemd.log#/tmp/scemd.log#g' /etc.defaults/syslog-ng/patterndb.d/scemd.conf sed -i 's#/var/log/postgresql.log#/tmp/postgresql.log#g' /etc.defaults/syslog-ng/patterndb.d/postgresql.conf sed -i 's#/usr/bin/systemctl --force poweroff#/etc/rc.local K#g' /usr/lib/systemd/system/systemd-poweroff.service
sed -i 's/buzzeroffcfg="0x00"/buzzeroffcfg="0x1b"/g' /etc.defaults/synoinfo.conf sed -i 's/enable_fan_debug="0x0"/enable_fan_debug="no"/g' /etc.defaults/synoinfo.conf sed -i 's/support_auto_poweron="yes"/support_auto_poweron="no"/g' /etc.defaults/synoinfo.conf sed -i 's/support_buzzer="yes"/support_buzzer="no"/g' /etc.defaults/synoinfo.conf sed -i 's/support_fan="yes"/support_fan="no"/g' /etc.defaults/synoinfo.conf sed -i 's/support_fan_adjust_dual_mode="yes"/support_fan_adjust_dual_mode="no"/g' /etc.defaults/synoinfo.conf sed -i 's/support_led_behavior_v2="yes"/support_led_behavior_v2="no"/g' /etc.defaults/synoinfo.conf sed -i 's/support_power_recovery="yes"/support_power_recovery="no"/g' /etc.defaults/synoinfo.conf sed -i 's/support_wol="yes"/support_wol="no"/g' /etc.defaults/synoinfo.conf sed -i 's/supportrcpower="yes"/supportrcpower="no"/g' /etc.defaults/synoinfo.conf sed -i 's/supportsystemperature="yes"/supportsystemperature="no"/g' /etc.defaults/synoinfo.conf sed -i 's/supportsystempwarning="yes"/supportsystempwarning="no"/g' /etc.defaults/synoinfo.conf echo -e "\e[1;33m 成功啦!成功啦!成功啦!立即重启猫盘,Enjoy it! \e[0m" rm -f /root/bug i2cset -y -f 0 0x45 0x00 0x55 i2cset -y -f 0 0x45 0x01 0x01 i2cset -y -f 0 0x45 0x31 0x33 i2cset -y -f 0 0x45 0x32 0x33 i2cset -y -f 0 0x45 0x33 0x33 i2cset -y -f 0 0x45 0x30 0x07 i2cset -y -f 0 0x45 0x34 0 i2cset -y -f 0 0x45 0x35 128 i2cset -y -f 0 0x45 0x36 0 fi
sed -i 's#/dev/null#/var/log/scemd.log#g' /etc.defaults/syslog-ng/patterndb.d/scemd.conf sed -i 's#/dev/null#/var/log/postgresql.log#g' /etc.defaults/syslog-ng/patterndb.d/postgresql.conf sed -i 's#/tmp/scemd.log#/var/log/scemd.log#g' /etc.defaults/syslog-ng/patterndb.d/scemd.conf sed -i 's#/tmp/postgresql.log#/var/log/postgresql.log#g' /etc.defaults/syslog-ng/patterndb.d/postgresql.conf sed -i 's#/etc/rc.local K#/usr/bin/systemctl --force poweroff#g' /usr/lib/systemd/system/systemd-poweroff.service
sed -i 's/buzzeroffcfg="0x1b"/buzzeroffcfg="0x00"/g' /etc.defaults/synoinfo.conf sed -i 's/enable_fan_debug="no"/enable_fan_debug="0x0"/g' /etc.defaults/synoinfo.conf sed -i 's/support_auto_poweron="no"/support_auto_poweron="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/support_buzzer="no"/support_buzzer="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/support_fan="no"/support_fan="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/support_fan_adjust_dual_mode="no"/support_fan_adjust_dual_mode="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/support_led_behavior_v2="no"/support_led_behavior_v2="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/support_power_recovery="no"/support_power_recovery="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/support_wol="no"/support_wol="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/supportrcpower="no"/supportrcpower="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/supportsystemperature="no"/supportsystemperature="yes"/g' /etc.defaults/synoinfo.conf sed -i 's/supportsystempwarning="no"/supportsystempwarning="yes"/g' /etc.defaults/synoinfo.conf echo -e "\e[1;33m 成功啦!成功啦!成功啦!立即重启猫盘,Enjoy it! \e[0m" rm -f /root/bug i2cset -y -f 0 0x45 0x00 0x55 i2cset -y -f 0 0x45 0x01 0x01 i2cset -y -f 0 0x45 0x31 0x33 i2cset -y -f 0 0x45 0x32 0x33 i2cset -y -f 0 0x45 0x33 0x33 i2cset -y -f 0 0x45 0x30 0x07 i2cset -y -f 0 0x45 0x34 0 i2cset -y -f 0 0x45 0x35 128 i2cset -y -f 0 0x45 0x36 0 fi /usr/bin/systemctl daemon-reload