forked from pool/systemd
16 lines
431 B
Bash
16 lines
431 B
Bash
#!/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
|