Revision 99760ae6
Added by Scott Ullrich about 16 years ago
etc/rc.firmware | ||
---|---|---|
180 | 180 |
BOOT_DRIVE=`/sbin/glabel list | /usr/bin/grep -B2 ufs/pfsense1 | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' ' | /usr/bin/cut -d's' -f1` |
181 | 181 |
# test the slice. if we are on slice 1 we need to flash 2 and vica versa |
182 | 182 |
if [ `echo $REAL_BOOT_DEVICE | /usr/bin/grep "s1"` ]; then |
183 |
TOFLASH="${BOOT_DRIVE}s2a" |
|
184 | 183 |
SLICE="2" |
184 |
TOFLASH="${BOOT_DRIVE}s${SLICE}" |
|
185 | 185 |
else |
186 |
TOFLASH="${BOOT_DRIVE}s1a" |
|
187 | 186 |
SLICE="1" |
187 |
TOFLASH="${BOOT_DRIVE}s${SLICE}" |
|
188 | 188 |
fi |
189 | 189 |
|
190 | 190 |
# Remove TOFLASH and get ready for new flash image |
Also available in: Unified diff
Out image to the slice and not a