#!/bin/sh

. /etc/init.d/init-functions

case "$1" in
	start)
		notify "Configuring swap "
		swapon -a
		check $?
		;;
	stop)
		notify "Stopping use swap "
		swapoff -a
        check $?
		;;
	restart|reload)
		"$0" stop
		"$0" start
		;;
	*)
		echo "swap init script usage: $0 {start|stop|restart}"
		return 1
esac
return $?
