Jump to content

sed: no input files (armbian-hardware-optimization)


xwiggen

Recommended Posts

--- armbian-hardware-optimization.orig  2020-05-17 10:53:46.352578716 +0200
+++ armbian-hardware-optimization       2020-05-17 10:54:02.052970679 +0200
@@ -67,7 +67,7 @@
        [[ -f $prefix/cpuinfo_cur_freq ]] && chmod +r $prefix/cpuinfo_cur_freq 2> /dev/null

        # enable compression where not exists
-       find /etc/logrotate.d/. -type f | xargs grep -H -c 'compress' | grep 0$ | cut -d':' -f1 | xargs -L1 sed -i '/{/ a compress'
+       find /etc/logrotate.d/. -type f | xargs grep -H -c 'compress' | grep 0$ | cut -d':' -f1 | xargs -L1 sed -i '/{/ a compress' 2> /dev/null
        sed -i "s/#compress/compress/" /etc/logrotate.conf

        # tweak ondemand cpufreq governor settings to increase cpufreq with IO load

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines