Changeset 65c998b for jhalfs


Ignore:
Timestamp:
04/04/2013 08:07:25 PM (11 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
1cf621b
Parents:
eecee98
Message:

Add some logic to makefile and jhalfs, so that when exiting the configuration
menu without saving, you have the choice of exiting jhalfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    reecee98 r65c998b  
    8484esac
    8585
     86# If the user has not saved his configuration file, let's ask
     87# if he or she really wants to run this stuff
     88if [ $(ls -l --time-style='+%Y%m%d%H%M%S' configuration.old | cut -d' ' -f 6) \
     89 -ge $(ls -l --time-style='+%Y%m%d%H%M%S' configuration | cut -d' ' -f 6) ]
     90  then echo -n "Do you want to run jhalfs? yes/no (yes): "
     91  read ANSWER
     92  if [ x${ANSWER:0:1} = "xn" -o x${ANSWER:0:1} = "xN" ] ; then
     93    echo "${nl_}Exiting gracefully.${nl_}"
     94    exit
     95  fi
     96fi
     97
     98# Change this to 0 to suppress almost all messages
    8699VERBOSITY=1
    87100
Note: See TracChangeset for help on using the changeset viewer.