new package aufs2-util
[openadk.git] / package / aufs2-util / src / umount.aufs
blob39568923656c971303487f8df4a03601af67a97b
1 #!/bin/sh -
3 # Copyright (C) 2005-2009 Junjiro Okajima
5 # This program, aufs is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 # The main purpose of this script is calling auplink.
23 PATH=/usr/bin:/usr/sbin:/bin:/sbin
24 export PATH
26 set -e
27 #set -x; echo $0 $@
28 dev="$1"
29 shift
30 auplink "$dev" flush
31 exec umount -i $@ "$dev"