diff options
-rwxr-xr-x | create-hook | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/create-hook b/create-hook index 113fcd9..164e4fb 100755 --- a/create-hook +++ b/create-hook @@ -1,16 +1,12 @@ #!/bin/bash input='/usr/share/libalpm/hooks/90-linux.hook' -target=$( - grep -m1 'Target = ' "${input}" | \ - cut -d'=' -f2 | \ - sed 's|\s\+||g' -) sed ' + /Target = boot\//d /Description =/{ s/=\s*/= Test permissions for / a When = PreTransaction\ -Exec = /usr/bin/sh -c '"'"'[ -w /'"${target}"' ]'"'"'\ +Exec = /usr/bin/sh -c '"'"'[ -w /boot ]'"'"'\ AbortOnFail q } |