X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=inline;f=stage2%2Fpost-install;h=74122ad39f76da61120b15ce77a3113c6c4d5347;hb=b7d1d99f41dcf50a8635f608679947f4455a0c7c;hp=f0f33e01a97afbd253a2dd9f26e29b4e15e7226d;hpb=2a71f1dd83720c7648a846742a09b3b60b69c321;p=hvlinux.git diff --git a/stage2/post-install b/stage2/post-install index f0f33e0..74122ad 100755 --- a/stage2/post-install +++ b/stage2/post-install @@ -37,7 +37,12 @@ sed -i -e "s!^\(PATH=\).*tools.*!\1${SED_REP}!" /etc/profile # Removing /tools directory if [ -d /tools ]; then - mv /tools /tools.to.remove.after.stage2 + DEST=/usr/src/tools + if [ -d ${DEST} ]; then + # Remove old backup + rm -rf ${DEST} + fi + mv /tools ${DEST} fi ldconfig