From bfeb96126dedec0133b8fc5138225394a3ab3af3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 26 Feb 2010 22:45:39 +0000 Subject: add the block-mount package by Daniel Dickinson (cshore), replacing existing automount functionality SVN-Revision: 19877 --- .../base-files/files/etc/hotplug.d/block/10-mount | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 package/base-files/files/etc/hotplug.d/block/10-mount (limited to 'package/base-files/files/etc/hotplug.d/block/10-mount') diff --git a/package/base-files/files/etc/hotplug.d/block/10-mount b/package/base-files/files/etc/hotplug.d/block/10-mount deleted file mode 100644 index 38968933fa..0000000000 --- a/package/base-files/files/etc/hotplug.d/block/10-mount +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# Copyright (C) 2009-2010 OpenWrt.org - -blkdev=`dirname $DEVPATH` -if [ `basename $blkdev` != "block" ]; then - - device=`basename $DEVPATH` - case "$ACTION" in - add) - swapon /dev/$device >/dev/null 2>/dev/null || ( - mkdir -p /mnt/$device - mount /dev/$device /mnt/$device - ) - ;; - remove) - umount /dev/$device - ;; - esac - -fi -- cgit v1.2.3