Sha256: 26d19013e4583742888aae38c246aafb0ff75ef8ba3ace57e91bb198cf93f8b1
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
#!/bin/sh # Remove the hook from /etc/profile start_line=`grep -n "BEGIN TPKG" /etc/profile | awk -F: '{print $1}'` end_line=`grep -n "END TPKG" /etc/profile | awk -F: '{print $1}'` # Check that we actually got valid start and end line if [ $start_line ] && [ $end_line ] && [ $start_line -lt $end_line ] then tmpfile=`mktemp -t etc.profile.XXXXXX` # yank out those lines sed -e "$start_line,$end_line d" /etc/profile > $tmpfile chmod 644 $tmpfile if [ -s $tmpfile ]; then mv $tmpfile /etc/profile fi fi
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tpkg-2.3.5 | postremove.solaris |
tpkg-2.3.4 | postremove.solaris |