N
lU>c       sD     k  Z  k Z k Z k Z k Z k Z k Z k Z  k Z  k	 l
  d  Z  d   Z  d   Z  d  d  Z # d  d d d  d d  d  d  Z g d  d d  d d d  Z  e d	  Z  d d
  Z  d   Z  d   Z  d   Z  d   Z d   Z $d   Z .d   Z >d   Z dd   Z d S(   i    c    s    	  |  a d  S(   N(   s   amounts   memoryOverhead(   s   amountsQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   setMemoryOverhead s   c     s     t  i   d }   t |   d j o" |  d d j o |  d d !d j o  d }  n  |  d j o  d }  n  |  Sd  S(	   Ni   i    s   ii   s   86s   i386s   sparc64s   sparc(   s   oss   unames   archs   len(   s   archsQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   getArch s   ;c    s     t  |   t i j o  |  Sn  |  t j o  d }  n  t i t i B}  | o   t i
 } n ! t i |  |  Sd  S(   Ns	   /dev/null(   s   types   filespecs   typess   IntTypes   Nones   oss   O_RDWRs   O_CREATs   flagss   readOnlys   O_RDONLYs   open(   s   filespecs   readOnlys   flagssQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   getfd s   
c	    s  # & t  |  } ' | | j o ( t  |  } ) | } n + t  |  } , t  |  } . t i | |  t i  o; / t i |  t i  o 0 t	 |  d  n
 2 d } n 4 t i
   }	 5 |	 o,6 | o
 | d j o$ 7 t i |  8 t i d  n : | o6 ; t i t i t i  < t i t i t i  n > t |  t d  j o  ? | t i | t i  j n @ t |  t d  j o  A | t i | t i  j n B t |  t d  j o C t i | t i  } n E | d j o' F t i | d  G t i |  n H | d j o; I t i | d  J | | j o K t i |  n n L | d j o' M t i | d  N t i |  n P | o Q t i |  |  n S t i |  |  U t i d  n W | o< X t i! |	 |	  Y t i" d  }
 Z t i$ d |	  n \ d } ] y ^ t i& |	 d  \ } } Wn. _ t( j
 o \ } } ` t+ Gd G| GHn Xb | o c t i$ d |
  n e | Sd  S(	   Ns    can not be runs    s   /s   ai    i   i   s   waitpid:(,   s   getfds   stdins   stdouts   stderrs   oss   accesss   roots   commands   X_OKs   RuntimeErrors   forks   childpids   isyss   chroots   chdirs   ignoreTermSigss   signals   SIGTSTPs   SIG_IGNs   SIGINTs   types   opens   O_RDONLYs   O_RDWRs   dup2s   closes
   searchPaths   execvps   argvs   execvs   syss   exits   newPgrps   setpgids	   tcgetpgrps   oldPgrps	   tcsetpgrps   statuss   waitpids   pids   OSErrors   errnos   msgs   __name__(   s   commands   argvs   stdins   stdouts   stderrs
   searchPaths   roots   newPgrps   ignoreTermSigss   childpids   oldPgrps   statuss   pids   errnos   msgsQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   execWithRedirect# sd   
  



i   i   s   /c    s_  g j t  i | |  t  i  o; k t  i |  t  i  o l t |  d  n
 n d } n p t  i   \ } } r t  i	   }	 s |	 o t | o
 | d j o t t i |  n u t  i | |  v t  i |  w t  i |  y | d j o z t  i |  n | | o' } t  i | d  ~ t  i |  n  | o  t  i |  |  n  t  i |  |   t i d  n  t  i |   d }
  d }  xJ  | o?  t i | g g  g    t  i | d  }  |
 | }
 qW t  i |   y  t  i |	 d  Wn.  t j
 o \ } }  t Gd G| GHn X |
 Sd  S(	   Ns    can not be runs    s   /i   i    s   1i  s   waitpid:(    s   oss   accesss   roots   commands   X_OKs   RuntimeErrors   pipes   reads   writes   forks   childpids   isyss   chroots   dup2s   catchfds   closes   closefds   stdins
   searchPaths   execvps   argvs   execvs   syss   exits   rcs   ss   selects   waitpids   OSErrors   errnos   msgs   __name__(   s   commands   argvs
   searchPaths   roots   stdins   catchfds   closefds   reads   writes   childpids   rcs   ss   errnos   msgsQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   execWithCaptureg sF    

		 
c    sd    t  i |  t  i  }  t  i | t  i t  i Bt  i B }  | o@  | \ } } }  t  i i |   }  | | | |  }	 n  z  t  i | d  }
  d }  xh  |
 o]  t  i | |
   | t |
  }  | o  |	 i |  n  t  i | d  }
 q WWd    t  i |   t  i |   | o  |	 i   n Xd  S(   Ni   i    i @  (   s   oss   opens   sources   O_RDONLYs   fs   tos   O_RDWRs   O_TRUNCs   O_CREATs   ts   pws   fns   titles   texts   paths   getsizes   totals   wins   reads   counts   writes   lens   sets   closes   pop(   s   sources   tos   pws   fs   ts   fns   titles   texts   totals   wins   countsQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   copyFile s*   &
	 


c    s      t  d d  }  | i   d }  ~  t i |  }  t t | d  d  }  |  o  | t
 } n  | Sd  S(   Ns   /proc/meminfos   ri   i   (   s   opens   fs	   readliness   mems   strings   splits   fieldss   ints   longs	   correcteds   memoryOverhead(   s	   correcteds   fs   mems   fieldssQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   memInstalled s   
c     s     t  d d  d }   |  d d d }   t d |    |  d j  o  d }  d	 } n=  |  d
 j o  d
 }  d } n  |  }  d |  }  t d | |   | | f Sd  S(   Ns	   correctedi    i   i   i   s   Detected %sM of memoryi   i`   i   i  i  i   s   Swap attempt of %sM to %sM(   s   memInstalleds   mems   logs   minswaps   maxswap(   s   mems   minswaps   maxswapsQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   swapSuggestion s   			c    s$    t  i i |   o  d  Sn  t i |  d  }  t | d  o  d }  | d } n  d }  d | d }  t  i i |  o  t  i	 | d  n  xk  | t |  j  oT  | d | | }  | d }  t  i i |  o  t  i	 | d  n q Wd  S(   Ns   /i    i   i   i  (
   s   oss   paths   isdirs   dirs   strings   splitfieldss   elementss   lens   whichs   mkdir(   s   dirs   elementss   whichs   pathsQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys
   mkdirChain s     		 c     s     t  d d  }   |  i   }  |  i    x^ | d  rQ }  t |  d j o | d  d j o$  t i | d  }  | d Sn q= W t
 Sd  S(   Ns   /etc/inittabs   ri    i   s   id:s   :i   (   s   opens   inittabs	   readliness   liness   closes   lines   lens   strings   splits   fieldss   None(   s   inittabs   liness   lines   fieldssQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   getDefaultRunlevel s    	'c    s1     |  d j o  |  d | Sn | Sd  S(   Ns    s   /(   s   relpaths   filename(   s   relpaths   filenamesQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   makerelname s   c 	   s  g  } xt i |  d |  d rb} t | |  } | d j o 	| d | } n
 | } t i |  d |  } | d  ] } t i |  p t i |  p t i |  o
 q) n_ | d  d j o | d  d j o9 t i |  o t |  |  } n | g } n xC | d r6 } | g  j o | g } n | i |  qDW | i   q) W"| Sd  S(   Ns   /i    s    i   s   As   Z(   s   tzdatas   oss   listdirs   basepaths   relpaths   ns   makerelnames   timezones   lstats   filestats   filemodes   stats   S_ISLNKs   S_ISREGs   S_ISDIRs   findtzs	   tmptzdatas   ms   appends   sort(	   s   basepaths   relpaths   tzdatas   ns   timezones   filestats   filemodes	   tmptzdatas   msQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   findtzs,   	 		4
% 	c    s   $&t  i |   } 'xb | d 'rU } (t  i i |  d |  o )t |  d |  n +t  i |  d |  q! W,t  i |   d  S(   Ni    s   /(	   s   oss   listdirs   paths   filess   files   isdirs   rmrfs   unlinks   rmdir(   s   paths   filess   filesQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   rmrf$s    	c    s   ./t  |   d j o 0d Sn 2|  d t i j o 3d Sn 5x[ |  d 5rN } 6| d j p* | d j p | d j p t |  d j  o :d Sn qS W<d Sd  S(   Ni   i    s   :s   ,s   
i!   i   (   s   lens   users   strings   letterss   letters   ord(   s   users   lettersQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys	   validUser.s    	=c    sG   >@d d d f } `t d | d t ad t d t bd |  d  S(	   Ns   bashs   -cs  
if [ -f /etc/sysconfig/clock ]; then
   . /etc/sysconfig/clock
   
   # convert old style clock config to new values
   if [ "${CLOCKMODE}" = "GMT" ]; then
      UTC=true
   elif [ "${CLOCKMODE}" = "ARC" ]; then
      ARC=true
   fi
fi

CLOCKFLAGS="--hctosys"

case "$UTC" in
   yes|true)
    CLOCKFLAGS="$CLOCKFLAGS -u";
     ;;
esac

case "$ARC" in
     yes|true)
        CLOCKFLAGS="$CLOCKFLAGS -A";
     ;;
esac
case "$SRM" in
     yes|true)
        CLOCKFLAGS="$CLOCKFLAGS -S";
     ;;
esac
/sbin/hwclock $CLOCKFLAGS
s   /bin/shs   stdins   stdouts   stderrs   root(   s   argss   execWithRedirects   Nones   root(   s   roots   argssQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   setClock>s    c     sh   det  d d  }  f|  i   d } g~  it i |  } jt t | d  d  } l| Sd  S(   Ns   /proc/meminfos   ri   i   i   (	   s   opens   fs	   readliness   mems   strings   splits   fieldss   ints   long(   s   fs   mems   fieldssQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys
   swapAmountds   N(   s   typess   oss   syss   isyss   selects   strings   stats   signals   os.paths   logs   *s   memoryOverheads   setMemoryOverheads   getArchs   getfds   execWithRedirects   execWithCaptures   Nones   copyFiles   memInstalleds   swapSuggestions
   mkdirChains   getDefaultRunlevels   makerelnames   findtzs   rmrfs	   validUsers   setClocks
   swapAmount(    sQ   /mnt/src/71rolling//i386/misc/src/anaconda-7.1/scripts//anaconda-runtime/iutil.pys   ? s&   6	
	!D2 
&