Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

api: add basic method for adding mount hooks

  • Loading branch information...
commit 5fccc08fd6cfd7b6055674de754973b542c1efce 1 parent f4109bb
@falconindy authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 geninit.api
View
13 geninit.api
@@ -187,6 +187,19 @@ use_hookscript() { # {{{
__add_file "/hooks/$script" "$basedir$_sharedir/hooks/$script" 755
} # }}}
+use_mounthook() { # {{{
+ # specifies that a builder should install a custom mount handler.
+
+ local mounthook=${1:-$builder}
+
+ if [[ ! -f $basedir$_sharedir/mount/$mounthook ]]; then
+ error "unable to find mount hook: $mounthook"
+ return 1
+ fi
+
+ __add_file "/mount/$mounthook" "$basedir$_sharedir/mount/$mounthook" 755
+} # }}}
+
add_checked_modules() { # {{{
# add a class of modules, as a dir relative to /lib/modules/$kernver/kernel.
# if you need to block addition of modules, you can add glob patterns to the
Please sign in to comment.
Something went wrong with that request. Please try again.