Files
openrouter/rootfs/etc/init.d/swap
T

25 lines
325 B
Bash
Executable File

#!/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 $?