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

Last change on this file since 2704 was 2704, checked in by daduve, 3 years ago

wip files

  • Property svn:executable set to *
File size: 258 bytes
Line 
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
12        mount | awk -F ' on ' "/$USER/"'{print $2 }' | awk -F ' type ' '{ cmd = "umount " $1; system( cmd ) }'
13fi
Note: See TracBrowser for help on using the repository browser.