Last two lines of a fresh (and successful) zaurus install are:

grep: /etc/mnt/wsconsctl.conf: No such file or directory
grep: /etc/mnt/sysctl.conf: No such file or directory

which is somewhat ugly.

As {sysctl,wsconsctl}.conf are now in /etc/examples, when the
installer tries to update the ztsscale(8) related lines, it doesn't
find the files. This is not a problem as lines can be safely
appended to empty files created by the stdout redirection of the
grep command.

Index: install.md
===================================================================
RCS file: /cvs/src/distrib/zaurus/ramdisk/install.md,v
retrieving revision 1.29
diff -u -p -u -p -r1.29 install.md
--- install.md  16 Nov 2013 18:37:27 -0000      1.29
+++ install.md  5 Aug 2014 07:16:08 -0000
@@ -124,11 +124,11 @@ md_congrats() {
        case $? in
        0)
                grep -v '^mouse\.scale.*$' /mnt/etc/wsconsctl.conf \
-                    >/tmp/wsconsctl.conf
+                    >/tmp/wsconsctl.conf 2>/dev/null
                echo $val "     # see ztsscale(8)" >> /tmp/wsconsctl.conf
                cp /tmp/wsconsctl.conf /mnt/etc/wsconsctl.conf
                grep -v '^machdep\.ztsscale.*$' /mnt/etc/sysctl.conf \
-                    >/tmp/sysctl.conf
+                    >/tmp/sysctl.conf 2>/dev/null
                cp /tmp/sysctl.conf /mnt/etc/sysctl.conf
                ;;
        esac

Reply via email to