Changeset 8ebf154
- Timestamp:
- 11/17/2005 09:21:39 PM (19 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- ebd1409
- Parents:
- d13460c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jhalfs
rd13460c r8ebf154 328 328 chapter4_Makefiles() { 329 329 #----------------------------# 330 331 # If /home/lfs is already present in the host, we asume that the 332 # lfs user and group are also presents in the host, and a backup 333 # of their bash init files is made. 330 334 ( 331 335 cat << EOF … … 339 343 021-addinguser: 020-creatingtoolsdir 340 344 @\$(call echo_message, Building) 341 @groupadd lfs && \\ 342 useradd -s /bin/bash -g lfs -m -k /dev/null lfs && \\ 343 chown lfs \$(LFS)/tools && \\ 345 @if [ ! -d /home/lfs ]; then \\ 346 groupadd lfs; \\ 347 useradd -s /bin/bash -g lfs -m -k /dev/null lfs; \\ 348 fi; 349 @chown lfs \$(LFS)/tools && \\ 344 350 chown lfs \$(LFS)/sources && \\ 345 351 touch \$@ … … 347 353 022-settingenvironment: 021-addinguser 348 354 @\$(call echo_message, Building) 355 @if [ -f /home/lfs/.bashrc -a ! -f /home/lfs/.bashrc.XXX ]; then \\ 356 mv -v /home/lfs/.bashrc /home/lfs/.bashrc.XXX; \\ 357 fi; 358 @if [ -f /home/lfs/.bash_profile -a ! -f /home/lfs/.bash_profile.XXX ]; then \\ 359 mv -v /home/lfs/.bash_profile /home/lfs/.bash_profile.XXX; \\ 360 fi; 349 361 @echo "set +h" > /home/lfs/.bashrc && \\ 350 362 echo "umask 022" >> /home/lfs/.bashrc && \\ … … 820 832 chapter4: 020-creatingtoolsdir 021-addinguser 022-settingenvironment 821 833 822 chapter5: chapter4 $chapter5 834 chapter5: chapter4 $chapter5 restore-lfs-env 823 835 824 836 chapter6: chapter5 $chapter6 … … 841 853 clean-chapter5: 842 854 rm -rf \$(LFS)/tools/* 843 rm -f $chapter5 855 rm -f $chapter5 restore-lfs-env 844 856 cd logs && rm -f $chapter5 && cd .. 845 857 … … 858 870 cd logs && rm -f $chapter789 && cd .. 859 871 872 restore-lfs-env: 873 @\$(call echo_message, Building) 874 @if [ -f /home/lfs/.bashrc.XXX ]; then \\ 875 mv -fv /home/lfs/.bashrc.XXX /home/lfs/.bashrc; \\ 876 fi; 877 @if [ -f /home/lfs/.bash_profile.XXX ]; then \\ 878 mv -v /home/lfs/.bash_profile.XXX /home/lfs/.bash_profile; \\ 879 fi; 880 @chown lfs:lfs /home/lfs/.bash* && \\ 881 @touch \$@ 860 882 861 883 EOF
Note:
See TracChangeset
for help on using the changeset viewer.