Welcome to the Tiny Core Linux Wiki at tinycorelinux.net!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dcore:boot-scripts_source_20150429 [2015/05/04 08:56]
sm8ps created
dcore:boot-scripts_source_20150429 [2015/05/05 23:53] (current)
sm8ps Added link to GIT-repo
Line 1: Line 1:
 ====== Boot-scripts (source, 20150429) ====== ====== Boot-scripts (source, 20150429) ======
 +The scripts in their present state are available at the [[http://git.tinycorelinux.net/index.cgi?url=dCore-scripts.git/|GIT-repository]].
 +
 ===== 'init' (on initrd) ===== ===== 'init' (on initrd) =====
 <code Bash> <code Bash>
Line 798: Line 800:
 43   fi 43   fi
 44  done 44  done
 +</code>
 +
 +===== '~/.profile' =====
 +<code Bash>
 + 1  # ~/.profile: Executed by Bourne-compatible login SHells.
 + 2  #
 + 3  # Path to personal scripts and executables (~/.local/bin).
 + 4  [ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"
 + 5  export PATH=$HOME/.local/bin:$PATH
 + 6  
 + 7  ONDEMAND=/etc/sysconfig/tcedir/ondemand
 + 8  [ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"
 + 9  
 +10  # Environment variables and prompt for Ash SHell
 +11  # or Bash. Default is a classic prompt.
 +12  #
 +13  PS1='\u@\h:\w\$ '
 +14  PAGER='less -EM'
 +15  MANPAGER='less -isR'
 +16  LANG=en_US.UTF8
 +17  
 +18  `which editor >/dev/null` && EDITOR=editor || EDITOR=vi
 +19  
 +20  export PS1 PAGER LANG EDITOR MANPAGER
 +21  
 +22  export BACKUP=1
 +23  [ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1
 +24  export FLWM_TITLEBAR_COLOR="58:7D:AA"
 +25  
 +26  if [ -f "$HOME/.ashrc" ]; then
 +27     export ENV="$HOME/.ashrc"
 +28     . "$HOME/.ashrc"
 +29  fi
 +30  
 +31  TERMTYPE=`/bb/tty`
 +32  [ ${TERMTYPE:5:3} == "tty" ] && (
 +33  [ ! -f /usr/bin/Xorg ] ||
 +34  [ -f /etc/sysconfig/text ] ||
 +35  [ -e /tmp/.X11-unix/X0 ] || 
 +36  startx
 +37  )
 </code> </code>
 ===== '~/.ashrc' ===== ===== '~/.ashrc' =====
 <code Bash> <code Bash>
 + 1  # ~/.ashrc: Executed by SHells.
 + 2  #
 + 3  . /etc/init.d/tc-functions
 + 4  
 + 5  # Alias definitions.
 + 6  #
 + 7  alias df='df -h'
 + 8  alias du='du -h'
 + 9  
 +10  alias ls='ls -p'
 +11  alias ll='ls -l'
 +12  alias la='ls -la'
 +13  
 +14  # Avoid errors... use -f to skip confirmation.
 +15  alias cp='cp -i'
 +16  alias mv='mv -i'
 +17  alias rm='rm -i'
 </code> </code>
 ===== '~/.xinitrc' ===== ===== '~/.xinitrc' =====
Print/export