Skip to content
View in the app

A better way to browse. Learn more.

Learn more

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

Featured Replies

--- 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

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.