Initial commit
This commit is contained in:
11
package/network/services/samba36/files/samba.hotplug
Normal file
11
package/network/services/samba36/files/samba.hotplug
Normal file
@@ -0,0 +1,11 @@
|
||||
. /lib/samba/samba.sh
|
||||
|
||||
samba_dev_filter $DEVNAME
|
||||
[ "$FLAG_DEV_TYPE" = "not-mtd" ] || exit
|
||||
|
||||
config_load samba
|
||||
case $ACTION in
|
||||
add) samba_add_section $DEVNAME;;
|
||||
remove) samba_delete_section $DEVNAME;;
|
||||
esac
|
||||
uci commit samba
|
||||
Reference in New Issue
Block a user