samba.hotplug 224 B

1234567891011
  1. . /lib/samba/samba.sh
  2. samba_dev_filter $DEVNAME
  3. [ "$FLAG_DEV_TYPE" = "not-mtd" ] || exit
  4. config_load samba
  5. case $ACTION in
  6. add) samba_add_section $DEVNAME;;
  7. remove) samba_delete_section $DEVNAME;;
  8. esac
  9. uci commit samba