git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+Daily builder.
[nethome.git]
/
bin
/
mocksetup
diff --git
a/bin/mocksetup
b/bin/mocksetup
index
18529fb
..
f4cf2fb
100755
(executable)
--- a/
bin/mocksetup
+++ b/
bin/mocksetup
@@
-85,7
+85,7
@@
for r in $l;do
echo $c
done
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
c="umount $rpath$dir"
while $c 2>&1|grep -v ': not mounted$';do
echo $c
@@
-132,6
+132,14
@@
for r in $l;do
ln -s ../../../share/gdb/auto-load $rpath/usr/local/share/gdb/auto-load
fi
ln -s ../../../share/gdb/auto-load $rpath/usr/local/share/gdb/auto-load
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
echo $r >$rpath/MOCK
fi
if ! $u;then
echo $r >$rpath/MOCK
fi