cvs commit: ALFS/profiles/LFS runit

thomasp at linuxfromscratch.org thomasp at linuxfromscratch.org
Wed Jan 14 11:09:31 PST 2004


thomasp     04/01/14 12:09:31

  Modified:    profiles/LFS Tag: LFS-5_0-branch runit
  Log:
  updated root user check and changed default location of the nALFS executable in the runit script
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +3 -3      ALFS/profiles/LFS/runit
  
  Index: runit
  ===================================================================
  RCS file: /home/cvsroot/ALFS/profiles/LFS/runit,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- runit	14 Jan 2004 02:29:50 -0000	1.1.2.1
  +++ runit	14 Jan 2004 19:09:31 -0000	1.1.2.2
  @@ -1,7 +1,7 @@
   #!/bin/sh
   
  -if [[ `whoami` != root ]]; then
  -  echo Attention: this profile should be run as root.
  +if [ $(id -u) -ne 0 ]; then
  +  echo "Attention: this profile should be run as root."
     exit 3
   fi
   
  @@ -10,4 +10,4 @@
   fi
   
   umask 022
  -/usr/bin/nALFS -l -L nalfs.log LFS.xml
  +/usr/local/bin/nALFS -l -L nalfs.log LFS.xml
  
  
  



More information about the alfs-log mailing list