I'm writing a script which will be used on Raspberry Pi's that will be configured in 2 ways;
a) Pi's that are have /var/log mounted on a physical drive
b) Pi's that have their /var/log mounted as tmpfs
I need a conditional statement that will differentiate between the 2, so if /var/log is mounted in tmpfs - the script will run, but if mounted on a physical drive then it wont.
To achieve this;
if /var/log = tmpfs {
...run my script
}
Any help would be appreciated.