summary refs log tree commit diff
path: root/contrib/rvnit/07Sswap
blob: 4327a1ec9a4403e0155165a0030656f203fd16d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
. /etc/runit/functions

# vim: set ts=4 sw=4 et:

[ -n "$VIRTUALIZATION" ] && return 0

msg "Initializing swap..."
swapon -a || emergency_shell