-
-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Automounter #360
Merged
Merged
Add Automounter #360
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e2ed27e
conf(devd): add automount event hooks
servusdei2018 4d1c6a2
etc: create automount.conf
servusdei2018 0755fda
usr.sbin: add automount.sh
servusdei2018 e1dac0c
usr.sbin: create automount Makefile.depend
servusdei2018 2fcb7ec
usr.sbin: create automount Makefile
servusdei2018 16c3581
targets.pseudo.userland: add usr.sbin/automount to depends
servusdei2018 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# configure mount directory | ||
MNT_PREFIX='/Volumes' | ||
# use nice names by default | ||
NICENAMES='YES' | ||
# disable automatic opening of file manager | ||
FM='' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# PENDRIVE/PHONE/SDCARD insert | ||
notify 100 { | ||
match "system" "DEVFS"; | ||
match "type" "CREATE"; | ||
match "cdev" "(da|mmcsd|ugen)[0-9]+.*"; | ||
action "/usr/sbin/automount $cdev attach &"; | ||
}; | ||
|
||
# PENDRIVE/PHONE/SDCARD remove | ||
notify 100 { | ||
match "system" "DEVFS"; | ||
match "type" "DESTROY"; | ||
match "cdev" "(da|mmcsd|ugen)[0-9]+.*"; | ||
action "/usr/sbin/automount $cdev detach &"; | ||
}; | ||
|
||
# CD-ROM media inject | ||
notify 100 { | ||
match "system" "DEVFS"; | ||
match "type" "CREATE|MEDIACHANGE"; | ||
match "cdev" "(cd)[0-9]+.*"; | ||
action "/usr/sbin/automount $cdev attach &"; | ||
}; | ||
|
||
# CD-ROM media eject | ||
notify 100 { | ||
match "system" "DEVFS"; | ||
match "type" "DESTROY"; | ||
match "cdev" "(cd)[0-9]+.*"; | ||
action "/usr/sbin/automount $cdev detach &"; | ||
}; | ||
|
||
# CD-ROM no media | ||
notify 100 { | ||
match "system" "CAM"; | ||
match "subsystem" "periph"; | ||
match "type" "error"; | ||
match "cam_status" "0xcc"; | ||
match "scsi_status" "2"; | ||
match "scsi_sense" "70 02 3a 02"; | ||
match "device" "(cd)[0-9]+.*"; | ||
action "/usr/sbin/automount $device detach &"; | ||
}; | ||
Comment on lines
+1
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -420,6 +420,7 @@ DIRDEPS+= \ | |
usr.sbin/auditreduce \ | ||
usr.sbin/authpf \ | ||
usr.sbin/autofs \ | ||
usr.sbin/automount \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. include the appropriate makefile for automount |
||
usr.sbin/binmiscctl \ | ||
usr.sbin/bluetooth/ath3kfw \ | ||
usr.sbin/bluetooth/bcmfw \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# $FreeBSD$ | ||
|
||
SCRIPTS=automount.sh | ||
|
||
.include <bsd.prog.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# $FreeBSD$ | ||
# Autogenerated - do NOT edit! | ||
|
||
DIRDEPS = \ | ||
|
||
|
||
.include <dirdeps.mk> | ||
|
||
.if ${DEP_RELDIR} == ${_DEP_RELDIR} | ||
# local dependencies - needed for -jN in clean tree | ||
.endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may eventually be configured to automatically open up Filer if desired.