X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpost-install;h=86f919afeb9c40d00a42ffc9f1d2a74cf5347fe6;hb=f92dd465a70fd3e2986530f26c1e73699bb0021d;hp=cee7e86cab8acf5023574070e37afb9710971df6;hpb=1eb363044c6ee3115e62736aed4403b750082b44;p=hvlinux.git diff --git a/stage2/post-install b/stage2/post-install index cee7e86..86f919a 100755 --- a/stage2/post-install +++ b/stage2/post-install @@ -1,9 +1,6 @@ #!/bin/bash -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list +source ../functions/main cat > /etc/default/useradd << "EOF" # useradd defaults file @@ -31,6 +28,20 @@ chown -v root:root /tmp chown -v root:root /var chown -v root:root /var/log +# Removing /tools from PATH: +SED_REP='/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin' +sed -i -e "s!^\(PATH=\).*tools.*!\1${SED_REP}!" /etc/profile + +# Removing /tools directory +if [ -d /tools ]; then + DEST=/usr/src/tools + if [ -d ${DEST} ]; then + # Remove old backup + rm -rf ${DEST} + fi + mv /tools ${DEST} +fi + ldconfig exit $?