source: xdg-lliurex-dirs/trunk/fuentes/install/etc/lightdm/ExitSession.d/umounter @ 323

Last change on this file since 323 was 323, checked in by hectorgh, 5 years ago

adding project files

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