#!/bin/sh /etc/rc.common # Copyright (C) 2006 OpenWrt.org HD=/dev/scsi/host0/bus0/target0/lun0/part1 start() { swapon $HD } stop () { swapoff $HD } CONFIG FILE BELOW config swap option path ' /mnt/disc0_1' option filename 'swapfile' option size '96000'