.bash logout

From SOFTICE

Revision as of 16:11, 1 August 2008; MattRideout (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search


Developed by:

Synopsis

This is a bash logout script used by SOFTICE. Its purpose is to attempt to unmount the user's Samba share from their home directory if it is not already mounted. This file is located at /home/sys/osc/homerun/.bash_logout.

File

# unmount the smb share if it is mounted
if grep -q ~ /etc/mtab; then
  smbumount ~ 
fi