You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
444 B
25 lines
444 B
7 years ago
|
#!/bin/sh
|
||
|
|
||
|
. /etc/init.d/globals
|
||
|
|
||
|
MOUNTBASE=/media
|
||
|
MOUNTPOINT="$MOUNTBASE/$MDEV"
|
||
|
ROOTDEV=$(readlink /dev/root)
|
||
|
|
||
|
# do not add or remove root device again...
|
||
|
[ "$ROOTDEV" = "$MDEV" ] && exit 0
|
||
|
|
||
|
if [ -e /tmp/.nomdevmount ]; then
|
||
|
LOGINFO "no action on $MDEV -- /tmp/.nomdevmount exists"
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
case "$ACTION" in
|
||
|
add)
|
||
|
LOGINFO "[$ACTION] do nothing on /dev/$MDEV"
|
||
|
;;
|
||
|
remove)
|
||
|
LOGINFO "[$ACTION] do nothing on $MOUNTBASE/$MDEV"
|
||
|
;;
|
||
|
esac
|