[Pkg-sysvinit-devel] Bug#430814: Bug#430814: Mount a tmpfs on /tmp if /tmp is too small

Petter Reinholdtsen pere at hungry.com
Thu Dec 27 08:23:40 UTC 2007


tags 430814 + pending
thanks

> Awk can not be used.  Can the code be rewritten to use POSIX shell
> features or sed?

I rewrote it to this:

  df="`df -kP /tmp |grep -v Filesystem`"
  set -- $df
  avail="$4"

I also had to update the LSB dependency header to document that the
script should stop in runlevels 0 and 6, and moved the stop point from
59 to 100 - 37 = 63 to make the start and stop location symetrical.

The patch is commited to svn and should show up in version
2.86.ds1-44.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list