echo $c
done
- for dir in /home /usr/local/bin /dev /proc /sys;do
+ for dir in /home /usr/local/bin /dev /proc /sys /root;do
c="umount $rpath$dir"
while $c 2>&1|grep -v ': not mounted$';do
echo $c
ln -s ../../src/debug $rpath/usr/local/src/debug
fi
- rm -f $rpath/usr/local/share/gdb/auto-load
+ rm -f $rpath/usr/local/share/gdb
if ! $u;then
- mkdir -p $rpath/usr/local/share/gdb
- ln -s ../../../share/gdb/auto-load $rpath/usr/local/share/gdb/auto-load
+ mkdir -p $rpath/usr/local/share
+ ln -s ../../../share/gdb $rpath/usr/local/share/gdb
+ fi
+
+ # Old systems incl. RHEL-6 do not feature it.
+ if [ -d $rpath/etc/sudoers.d ];then
+ rm -f $rpath/etc/sudoers.d/inteltest
+ if ! $u;then
+ ln /etc/sudoers.d/inteltest $rpath/etc/sudoers.d/inteltest
+ fi
fi
if ! $u;then