usbmount/umount.d/00_remove_model_symlink
changeset 0 60bc07f3f415
child 2 ee0797f46473
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/usbmount/umount.d/00_remove_model_symlink	Thu Feb 27 17:12:59 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +#!/bin/sh
     1.5 +# This script removes the model name symlink in /var/run/usbmount.
     1.6 +# Copyright (C) 2005 Martin Dickopp
     1.7 +#
     1.8 +# This file is free software; the copyright holder gives unlimited
     1.9 +# permission to copy and/or distribute it, with or without
    1.10 +# modifications, as long as this notice is preserved.
    1.11 +#
    1.12 +# This file is distributed in the hope that it will be useful,
    1.13 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    1.14 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    1.15 +# PARTICULAR PURPOSE.
    1.16 +#
    1.17 +set -e
    1.18 +
    1.19 +umount "/var/run/usbmount/"*
    1.20 +rmdir "/var/run/usbmount/"*
    1.21 +
    1.22 +exit 0