Changeset 49868ee


Ignore:
Timestamp:
02/20/15 06:49:18 (5 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, enter/10, releng/10.1.2
Children:
5ac3237
Parents:
a1eac71
Message:

In case the partition is ada0pXX we need to remove both digits of
pXX as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/libsh/functions.sh

    r92d5899 r49868ee  
    753753 
    754754     # Now get the root of the disk 
    755      disk=`echo $disk | sed 's|p[1-9]$||g' | sed "s|s[1-9][a-z]$||g" | sed "s|s[1-9]]$||g"` 
     755     disk=`echo $disk | sed 's|p[1-9]$||g' | sed 's|p[1-9][0-9]$||g' | sed "s|s[1-9][a-z]$||g" | sed "s|s[1-9]]$||g"` 
    756756     if [ ! -e "/dev/${disk}" ] ; then continue; fi 
    757757 
Note: See TracChangeset for help on using the changeset viewer.