16 lines
406 B
Bash
16 lines
406 B
Bash
#!/bin/sh
|
|
# Load user defined variables
|
|
[ -r conf ] && . ./conf
|
|
|
|
# Don't do anything if ./run didn't exit properly
|
|
[ "$1" -eq 1 ] && exit 0
|
|
|
|
# Simply umount network filesystems
|
|
umount -a -f -t $NETWORK_FS > /dev/null 2>&1
|
|
ret=$?
|
|
[ $ret -ne 0 ] && umount -a -f -l -t $NETWORK_FS > /dev/null 2>&1
|
|
|
|
umount -a -f -O _netdev > /dev/null 2>&1
|
|
ret=$?
|
|
[ $ret -ne 0 ] && umount -a -f -l -O _netdev > /dev/null 2>&1
|