Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (33 sloc) 852 Bytes
[section probe]
bashrc: [
#!/bin/bash
log=/var/tmp/cache/probe/probe.log
SANDBOX_ON=0
#PORTAGE_DEBUG=1
if [ "$EBUILD_PHASE" != "depend" ]
then
echo -n "$PF:$EBUILD_PHASE: " >> $log
if [ -e ${ROOT}etc/shadow ]
then
ls -l ${ROOT}etc/shadow 2>&1 >> $log
else
echo "${ROOT}etc/shadow does not exist" >> $log
fi
#if [[ $EBUILD_PHASE = unpack ]] ; then
# chattr +i "$PORTAGE_BUILDDIR"/distdir && \
# echo "**** created immutable directory: ${PORTAGE_BUILDDIR}/distdir" || \
# echo "**** directory is already missing: ${PORTAGE_BUILDDIR}/distdir"
#fi
#if [[ $EBUILD_PHASE = clean ]] ; then
# chattr -i "$PORTAGE_BUILDDIR"/distdir 2>/dev/null
#fi
fi
SANDBOX_ON=1
]
setup: [
install -d /etc/portage
# the " around EOF prevents variables from getting expanded - it's a bash feature
cat << "EOF" > /etc/portage/bashrc
$[[probe/bashrc]]
EOF
]
Jump to Line
Something went wrong with that request. Please try again.