gaboshlib/gaboshlib/g_checkbasicmounts.bashfunc
2022-07-06 12:24:21 +02:00

11 lines
357 B
Bash

#!/bin/bash
function g_checkbasicmounts {
rm -f /usr/portage/distfiles/.mirror-cache.json
mount | grep -q /proc || mount -t proc proc /proc
mount | grep -q /sys || mount -t sysfs sys /sys
mount | grep -q /dev/shm || mount -t tmpfs -o size=20G shm /dev/shm
mount | grep -q /dev/pts || mount -t devpts -o gid=5 devpts /dev/pts
chmod 666 /dev/urandom
}