# ferreus_orbit Generic Plugins 

fo_get_sorted_name(){
  local name=$(echo $DEVNAME| cut -d/ -f3)
  if [ "${name:0:4}" = "nvme" ]; then
    local id=$(echo "${name}"||awk -F'[^0-9.]+' '{print $2}')
  else
    local id=$(fo_get_dev_ascii ${name})
  fi
  if [ -z $id ]; then
    logger -t "udev" "Device ${name} detected but not supported"
    exit 1
  fi
  if [ -z "$MAXILIUM_ARG_to_fo_name" ]; then
    echo sd$(fo_get_dev_letter ${id})
    exit 0
  else
    echo Disk${id}
    exit 0
  fi
}
