mirror of
https://github.com/gnif/vendor-reset.git
synced 2025-12-29 15:09:28 +01:00
Log when hooks are installed, set install_hook=y by default
This commit is contained in:
parent
346e99246b
commit
67422cc5bd
@ -1,5 +1,5 @@
|
||||
PACKAGE_NAME="vendor-reset"
|
||||
PACKAGE_VERSION="0.0.4"
|
||||
PACKAGE_VERSION="0.0.5"
|
||||
BUILT_MODULE_NAME[0]="${PACKAGE_NAME}"
|
||||
MAKE[0]="make KDIR=${kernel_source_dir}"
|
||||
CLEAN="make KDIR=${kernel_source_dir} clean"
|
||||
|
||||
@ -33,7 +33,9 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
#define VENDOR_RESET_DEVNAME "vendor_reset"
|
||||
|
||||
static bool install_hook = false;
|
||||
#define vr_info(fmt, args...) pr_info("vendor-reset: " fmt, ##args)
|
||||
|
||||
static bool install_hook = true;
|
||||
module_param(install_hook, bool, 0);
|
||||
|
||||
static long vendor_reset_ioctl_reset(struct file * filp, unsigned long arg)
|
||||
@ -156,7 +158,10 @@ static int __init vendor_reset_init(void)
|
||||
return ret;
|
||||
|
||||
if (install_hook)
|
||||
{
|
||||
ret = fh_install_hooks(fh_hooks);
|
||||
vr_info("Hooks installed successfully\n");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user