blob: 87fb45c42a8348f06ba46df2d836043e3431088b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# Script which checks if we are running from install media, or real system
#############################################################################
# Test for PC-BSD Style mount
dmesg | grep "md0: Preloaded image" >/dev/null 2>/dev/null
if [ "$?" = "0" ]
then
echo "INSTALL-MEDIA"
exit 0
fi
# Test for pfSense LIVECD
mount | grep "/dev/iso9660/pfSense" >/dev/null 2>/dev/null
if [ "$?" = "0" ]
then
echo "pfSense-LiveCD/Installer"
exit 0
fi
echo "REAL-DISK"
exit 1
|