From 4348681ac6462221a753b98ea9607ac00e7a3868 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 13 Aug 2013 13:50:59 -0400 Subject: /etc/init.d/m*: Don't write to /dev/null. --- (limited to 'src.etc/init.d/mounttmpfs') diff --git a/src.etc/init.d/mounttmpfs b/src.etc/init.d/mounttmpfs index a4025d7..902ad1d 100644 --- a/src.etc/init.d/mounttmpfs +++ b/src.etc/init.d/mounttmpfs @@ -4,14 +4,14 @@ start() { printf 'Mounting temporary file systems... ' - if ! mount | grep -F ' /run ' >dev/null 2>&1; then + if ! mount | grep -F ' /run ' 2>&1 | :; then mount -t tmpfs -o nodev,noexec,nosuid,mode=0755 tmpfs /run fi [ -d /run/lock ] || mkdir -m 1777 /run/lock [ -d /run/shm ] || mkdir -m 1777 /run/shm - if ! mount | grep -F ' /tmp ' >dev/null 2>&1; then + if ! mount | grep -F ' /tmp ' 2>&1 | :; then mount -t tmpfs -o nodev,nosuid,mode=1777 tmpfs /tmp fi @@ -22,11 +22,11 @@ stop() { printf 'Unmounting temporary file systems... ' - if mount | grep -F ' /run ' >dev/null 2>&1; then + if mount | grep -F ' /run ' 2>&1 | :; then umount /run fi - if mount | grep -F ' /tmp ' >dev/null 2>&1; then + if mount | grep -F ' /tmp ' 2>&1 | :; then umount /run fi -- cgit v0.9.1