Mise à jour documentation
[hvlinux.git] / stage2 / post-install
index cee7e86..f0f33e0 100755 (executable)
@@ -31,6 +31,15 @@ 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
+    mv /tools /tools.to.remove.after.stage2
+fi
+
 ldconfig
 
 exit $?