File udev-remount-tmpfs of Package systemd.5151

#!/bin/sh

PATH=/usr/bin:/bin:/usr/sbin:/sbin
DIR=$(sed -rn '/^#/d;\@^[[:graph:]]+[[:space:]]+/[[:graph:]]+[[:space:]]+tmpfs[[:space:]]+.*size=[0-9]+[kmg,[:space:]]@{ s@^[[:graph:]]+[[:space:]]+(/[[:graph:]]+).*@\1@p }' /etc/fstab)

if [ -n "$DIR" ]; then
	for i in $DIR; do
		echo $i
		mount -o remount "$i" >/dev/null 2>&1
		STATE=$?
		if [ "$STATE" -gt 0 ]; then
			logger "Remount of $i failed with state $STATE"
		fi
	done
fi
openSUSE Build Service is sponsored by