source: home-linker/trunk/fuentes/umounter-lightdm.install/etc/lightdm/ExitSession.d/umounter

Last change on this file was 4922, checked in by hectorgh, 2 years ago

adding lazy option to umount

  • Property svn:executable set to *
File size: 261 bytes
RevLine 
[2704]1#!/bin/bash
2if [ -n "$1" ]; then
3        USER="$1"
4fi
5
6if [ "$USER" = "" ]; then
7        exit 0
8fi
9
10x=$(who | awk "/$USER/"'{print $1}')
11if [ -z "$x" ]; then
[4922]12        mount | awk -F ' on ' "/$USER/"'{print $2 }' | awk -F ' type ' '{ cmd = "umount -l " $1; system( cmd ) }'
[2704]13fi
Note: See TracBrowser for help on using the repository browser.