~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/src/initscripts/lib/init/tmpfs.sh

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh, Michael Stapelberg
  • Date: 2012-07-28 20:09:11 UTC
  • mfrom: (9.1.47 sid)
  • Revision ID: package-import@ubuntu.com-20120728200911-1xa3ydm5a46lyrjd
Tags: 2.88dsf-41+jessie1
[ Roger Leigh ]
* initscripts:
  - Move /etc/nologin and /var/lib/initscripts/nologin to
    /run/nologin.  This means that nologin is always created on
    a writable, available filesystem.  Closes: #660862.
  - Remove code to generate /etc/mtab.  /etc/mtab is now always a
    symbolic link to /proc/mounts.  Closes: #630723.
  - Remove incorrect use of break in case blocks in vars.sh.  Thanks
    to Raphaël Hertzog for this patch.  Closes: #701031.
  - /etc/network/if-up.d/mountnfs: Skip lo if already configured.
    Closes: #705052.  Thanks to Timo Weingärtner.
* sysvinit:
  - Document length limit of 127 in inittab process field.  Thanks
    to Johannes Truschnigg.  Closes: #693960.
* sysv-rc:
  - Fix typo in invoke-rc.d(8).  Closes: #683804.  Thanks to
    Martin-Éric Racine.

[ Michael Stapelberg ]
* systemd: update check to look for /run/systemd/system.
  Closes: #703571
* sysv-rc:
  - Add systemd support to update-rc.d(8) and invoke-rc.d(8).
    Closes: #683084.
  - service(8): use systemctl on machines that run systemd.
    Closes: #704923

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
{
9
9
    [ -r /proc/meminfo ] && \
10
10
        grep MemTotal /proc/meminfo | \
11
 
        sed -e 's;.*[[:space:]]\([0-9][0-9]*\)[[:space:]]kB.*;\1;'
 
11
        sed -e 's;.*[[:space:]]\([0-9][0-9]*\)[[:space:]]kB.*;\1;' || :
12
12
}
13
13
 
14
14
# Get size of swap space in kiB
16
16
{
17
17
    [ -r /proc/meminfo ] && \
18
18
        grep SwapTotal /proc/meminfo | \
19
 
        sed -e 's;.*[[:space:]]\([0-9][0-9]*\)[[:space:]]kB.*;\1;'
 
19
        sed -e 's;.*[[:space:]]\([0-9][0-9]*\)[[:space:]]kB.*;\1;' || :
20
20
}
21
21
 
22
22
#
85
85
# values here.
86
86
 
87
87
RAMLOCK=yes
88
 
RAMSHM=yes
89
 
RAMTMP=yes
 
88
# These might be overridden by /etc/default/rcS
 
89
if [ -z "$RAMSHM" ]; then RAMSHM=yes; fi
 
90
if [ -z "$RAMTMP" ]; then RAMTMP=no; fi
90
91
 
91
92
TMPFS_SIZE=20%VM
92
93
TMPFS_MODE=755