#!/bin/bash # # slackware post-install script # set -e mirror=http://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-current/ # http://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-14.2/ # http://mirror.rol.ru/slackware/slackware64-14.2/ # http://mirror.yandex.ru/slackware/slackware64-14.2/ # BEWARE OF VARIABLE ESCAPES echo -n profile... if [[ -f /etc/profile.dist ]]; then echo already else cp -p /etc/profile /etc/profile.dist cat >> /etc/profile < /etc/shrc <> /etc/ld.so.conf < /etc/slackpkg/mirrors < /etc/slackpkg/slackpkgplus.conf cat >> /etc/slackpkg/slackpkgplus.conf < /etc/rc.d/rc.syslog && echo done chmod -x /etc/rc.d/rc.syslog.dist chmod +x /etc/rc.d/rc.syslog /etc/rc.d/rc.syslog restart echo '' pgrep -a syslog fi if [[ -x `which git` ]]; then echo -n setting up $USER@$HOSTNAME for GIT... git config --global user.name "$USER@$HOSTNAME" git config --global user.email "$USER@$HOSTNAME" && echo done else cat <