#!/bin/sh
# chkconfig: 2345 - 98
### BEGIN INIT INFO
# Provides:          unmount
# Required-Start:    
# Required-Stop:     
# Default-Start:     
# Default-Stop:      0 1 6
# Short-Description: Unmount filesystems on shutdown
# Description:       Enable service provided by unmount.
# X-Start-Before:    
# X-Stop-After:      
# X-Timesys-Start-Number:  
# X-Timesys-Stop-Number:  98
### END INIT INFO

export PATH=/bin:/sbin:/usr/bin:/usr/sbin


case "$1" in
	stop)
		umount -a -r
		swapoff -a >/dev/null 2>&1
	;;
	*)
	;;
esac
