/[fai]/trunk/bin/fai
ViewVC logotype

Diff of /trunk/bin/fai

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3825 by lange, Mon Sep 4 08:05:04 2006 UTC revision 3826 by lange, Mon Sep 4 09:46:29 2006 UTC
# Line 226  if [ ! -f /.THIS_IS_THE_FAI_NFSROOT -a " Line 226  if [ ! -f /.THIS_IS_THE_FAI_NFSROOT -a "
226      exit 2      exit 2
227  fi  fi
228    
229      # HG: are we called as an init substitute ?  # are we called as an init substitute ?
230      export DO_INIT_TASKS=0  export DO_INIT_TASKS=0
231      [ "$0" = "/etc/init.d/rcS" ] && DO_INIT_TASKS=1  [ "$0" = "/etc/init.d/rcS" ] && DO_INIT_TASKS=1
232      if [ $DO_INIT_TASKS -eq 1 ]; then  if [ $DO_INIT_TASKS -eq 1 ]; then
233          renewclass=1 # always renew class list when installing      renewclass=1 # always renew class list when installing
234          create_ramdisk      create_ramdisk
235      fi  fi
236      export start_seconds=$(cut -d . -f 1 /proc/uptime)  export start_seconds=$(cut -d . -f 1 /proc/uptime)
237    
238      export LOGDIR=/var/log/fai/current  export LOGDIR=/var/log/fai/current
239      [ -d $LOGDIR ] && rm -rf $LOGDIR  [ -d $LOGDIR ] && rm -rf $LOGDIR
240      mkdir -p $LOGDIR  mkdir -p $LOGDIR
241    
242      # for compability, can be removed later  # for compability, can be removed later
243      if [ $DO_INIT_TASKS -eq 1 ]; then  if [ $DO_INIT_TASKS -eq 1 ]; then
244          mkdir /tmp/fai      mkdir /tmp/fai
245          mount --bind $LOGDIR /tmp/fai      mount --bind $LOGDIR /tmp/fai
246      fi  fi
247    
248  fai_init  fai_init
249  if [ X$action = Xdirinst ]; then  if [ X$action = Xdirinst ]; then

Legend:
Removed from v.3825  
changed lines
  Added in v.3826

  ViewVC Help
Powered by ViewVC 1.1.5