diff options
author | ceros7 <ceros7@svn> | 2010-10-08 19:44:48 +0000 |
---|---|---|
committer | ceros7 <ceros7@svn> | 2010-10-08 19:44:48 +0000 |
commit | 2f2193ed9eb93a002e14dda302fb80c1ffa72920 (patch) | |
tree | c0caf3798d2cc35cfb1ab8546a400306926cb775 /tools/Linux/packaging | |
parent | ed6e3f68c4cf60c3911dfe64e9e569d8950aee84 (diff) |
Execute hooks that are executable, regardless of it's name.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@34571 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux/packaging')
-rw-r--r-- | tools/Linux/packaging/debian/xbmc-live.upstart | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Linux/packaging/debian/xbmc-live.upstart b/tools/Linux/packaging/debian/xbmc-live.upstart index a84c494644..f7bdf43b58 100644 --- a/tools/Linux/packaging/debian/xbmc-live.upstart +++ b/tools/Linux/packaging/debian/xbmc-live.upstart @@ -62,13 +62,13 @@ pre-start script fi # Executes pre-hooks (if any) in the System "Hooks" directory - for hook in $(ls -1 $BOOTHOOKSDIRECTORY/live.d/*.sh) + for hook in $(find $BOOTHOOKSDIRECTORY/live.d -type f -perm /u=x,g=x,o=x | sort) do bash $hook $BOOTMEDIAMOUNTPOINT $XBMC_PARAMS done # Executes pre-hooks (if any) in the user "Hooks" directory - for hook in $(ls -1 /home/$xbmcUser/.xbmc/live.d/*.sh) + for hook in $(find /home/$xbmcUser/.xbmc/live.d -type f -perm /u=x,g=x,o=x | sort) do bash $hook $BOOTMEDIAMOUNTPOINT $XBMC_PARAMS done |