#! /bin/sh

set -e

PART=/dev/sda2
DIR=/media/ACER

# Mangle fstab to mount XP partition, which
# is guaranteed to be on /dev/sda2 (for now...)
if [ -f /etc/fstab ]; then
   set +e
   RET=`grep -c ${PART} /etc/fstab`
   set -e
   if [ ! -d ${DIR} ]; then
       mkdir -p ${DIR}
   fi
   if [ ${RET} = 0 ]; then
     echo "${PART} ${DIR} ntfs-3g defaults,ro,locale=el_GR.utf8 0 0" >> /etc/fstab
   fi
fi

#DEBHELPER#
