source: lmd/trunk/fuentes/lmd-server.install/usr/sbin/lmd-from-iso-clean @ 6838

Last change on this file since 6838 was 6838, checked in by kbut, 19 months ago

tabule file

  • Property svn:executable set to *
File size: 278 bytes
Line 
1#!/bin/bash
2
3while [[ $# -gt 0 ]]
4do
5        key="$1"
6
7        case $key in
8                --isopath)
9                ISOPATH="$2"
10                shift
11                shift
12                ;;
13                *)
14                shift
15                ;;
16        esac
17done
18
19if [ "$ISOPATH" != "" ]; then
20        mount | grep -q "$ISOPATH" && umount "$ISOPATH"
21        [[ "$ISOPATH" =~ ^/opt/ltsp/isos/* ]] && rm "$ISOPATH"
22fi
Note: See TracBrowser for help on using the repository browser.