wiki:SaliUsage/Functions/fs_on_tmpfs

Version 4 (modified by anonymous, 14 years ago) (diff)

--

fs_on_tmpfs

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

Example

Usage:

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