Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
post the contents of /etc/profile file. Casper...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729

    post the contents of /etc/profile file.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  2. #12
    Just Joined! beginner's Avatar
    Join Date
    Feb 2006
    Location
    Kiel, Germany
    Posts
    32
    I have found the way to execute mkswap and swapon. The swap partition worked fine but when i restart my box, the same error message appears
    Code:
    Enabling /etc/fstab     swaps--------------------[FALSE]
    and I have to do the same thing
    Code:
    /sbin/mkswap /dev/hda6
    /sbin/swapon -a
    to activate the swap partion!
    Is there any way to make it work automatically, without touching these commands mkswap and swapon

    Here is the content of my /etc/profile
    Code:
    # /etc/profile
    
    # System wide environment and startup programs, for login setup
    # Functions and aliases go in /etc/bashrc
    
    pathmunge () {
    	if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
    	   if [ "$2" = "after" ] ; then
    	      PATH=$PATH:$1
    	   else
    	      PATH=$1:$PATH
    	   fi
    	fi
    }
    
    # ksh workaround
    if [ -z "$EUID" -a -x /usr/bin/id ]; then 
    	EUID=`id -u`
    	UID=`id -ru`
    fi
    
    # Path manipulation
    if [ "$EUID" = "0" ]; then
    	pathmunge /sbin
    	pathmunge /usr/sbin
    	pathmunge /usr/local/sbin
    fi
    
    # No core files by default
    ulimit -S -c 0 > /dev/null 2>&1
    
    if [ -x /usr/bin/id ]; then
    	USER="`id -un`"
    	LOGNAME=$USER
    	MAIL="/var/spool/mail/$USER"
    fi
    
    HOSTNAME=`/bin/hostname`
    HISTSIZE=1000
    
    if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
        INPUTRC=/etc/inputrc
    fi
    
    export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
    
    for i in /etc/profile.d/*.sh ; do
        if [ -r "$i" ]; then
        	. $i
        fi
    done
    
    unset i
    unset pathmunge

  3. #13
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    profile file seems correct. add swap commands in /etc/rc.d/rc file.







    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •