wiki:SaliUsage/Functions/fs_on_tmpfs

Version 1 (modified by bas, 14 years ago) (diff)

--

PageOutlIne?

fs_on_tmpfs

This function checks if we make use of the tmpfs filesystem. This function is only used internally in /etc/init.d/funcions.

Example

Usage:

    FILE=/tmp/si.log
    if fs_on_tmpfs / ; then
        echo $@ >> $FILE || shellout
    fi
}}