#!/bin/sh # workaround an issue with mounting swap partition at startup SWAPX='/dev/mmcblk0p2' case "$1" in start) swapon $SWAPX ;; stop) swapoff $SWAPX ;; restart) swapoff $SWAPX swapon $SWAPX ;; reload|force-reload) echo "$0: not implemented" ;; *) ;; esac