Developer's Topics
Chapter 13, Packaging your software applications

Removal class action script (r.inittab)

Removal class action script (r.inittab)

   # PKGINST parameter provided by installation service
   

while read src dest do # remove all entries from the table that # are associated with this PKGINST sed -e "/^[^:]*:[^:]*:[^:]*:[^#]*#$PKGINST$/d" $dest > /tmp/$$itab || exit 2

mv /tmp/$$itab $dest || exit 2 done /sbin/init q || exit 2 exit 0