diff options
Diffstat (limited to 'core-services/04-swap.sh')
-rwxr-xr-x | core-services/04-swap.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core-services/04-swap.sh b/core-services/04-swap.sh new file mode 100755 index 0000000..f1db240 --- /dev/null +++ b/core-services/04-swap.sh @@ -0,0 +1,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 |