Changeset 33357


Ignore:
Timestamp:
2012-09-10T11:48:31+02:00 (5 years ago)
Author:
jow
Message:

[package] block-mount: additionally try to umount disk by mountpoint (#12056)

Location:
trunk/package/block-mount
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/block-mount/Makefile

    r31049 r33357  
    1010PKG_NAME:=block-mount 
    1111PKG_VERSION:=0.2.0 
    12 PKG_RELEASE:=8 
     12PKG_RELEASE:=9 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • trunk/package/block-mount/files/40-mount

    r30501 r33357  
    11#!/bin/sh 
    2 # Copyright (C) 2009-2010 OpenWrt.org 
     2# Copyright (C) 2009-2012 OpenWrt.org 
    33# Copyright (C) 2010 Vertical Communications 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1212 
    1313    device=`basename $DEVPATH` 
     14    mountpoint=`sed -ne "s|^[^ ]*/$device ||; T; s/ .*//p" /proc/self/mounts` 
    1415 
    1516    case "$ACTION" in 
     
    8384        remove) 
    8485                umount /dev/$device 
     86                umount $mountpoint 
    8587                ;; 
    8688    esac         
Note: See TracChangeset for help on using the changeset viewer.