source:
lmd/trunk/fuentes/lmd-server.install/usr/sbin/lmd-from-iso-clean
@
6729
Last change on this file since 6729 was 6729, checked in by , 3 years ago | |
---|---|
File size: 341 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | while [[ $# -gt 0 ]] |
4 | do |
5 | key="$1" |
6 | |
7 | case $key in |
8 | --isopath) |
9 | ISOPATH="$2" |
10 | shift |
11 | shift |
12 | ;; |
13 | *) |
14 | shift |
15 | ;; |
16 | esac |
17 | done |
18 | |
19 | if [ "$ISOPATH" != "" ]; then |
20 | mount | grep -q "$ISOPATH" && umount "$ISOPATH" |
21 | [[ "$ISOPATH" =~ ^/opt/ltsp/isos/* ]] && rm "$ISOPATH" |
22 | fi |
Note: See TracBrowser
for help on using the repository browser.