about summary refs log tree commit diff
path: root/core-services/04-swap.sh
blob: f1db24001ca18afb43a498a85e96e4077b8ef10c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# vim: set ts=4 sw=4 et:

. /etc/runit/functions
[ -r /etc/rc.conf ] && . /etc/rc.conf

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

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