usbmount/umount.d/00_remove_model_symlink
author ft
Tue, 04 Nov 2014 14:58:00 +0100
changeset 2 ee0797f46473
parent 0 60bc07f3f415
permissions -rwxr-xr-x
changed some things
     1 #!/bin/sh
     2 # This script removes the model name symlink in /var/run/usbmount.
     3 # Copyright (C) 2005 Martin Dickopp
     4 #
     5 # This file is free software; the copyright holder gives unlimited
     6 # permission to copy and/or distribute it, with or without
     7 # modifications, as long as this notice is preserved.
     8 #
     9 # This file is distributed in the hope that it will be useful,
    10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    12 # PARTICULAR PURPOSE.
    13 #
    14 #set -e
    15 
    16 #umount "/var/run/usbmount/"*
    17 #rmdir "/var/run/usbmount/"*
    18 
    19 chattr -i "/tmp/usbmount"
    20 umount "/tmp/usbmount/"*
    21 rmdir "/tmp/usbmount/"*
    22 
    23 #for tcfile in $(/usr/bin/encryptionprovider.py -g)
    24 #do
    25 #	/usr/bin/encryptionprovider.py -u "$tcfile"
    26 #done
    27 
    28 exit 0