Skip to content

Commit

Permalink
Angepasst Include Reihenfolge
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsio committed May 15, 2016
1 parent da587af commit 6be02bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions bin/yahm-module
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ enable_modules()
fi

progress "Executing ${MODULE} module_install()"
source ${YAHM_DIR}/share/modules/${MODULE}

_module_install

Expand All @@ -121,6 +122,7 @@ disable_modules()
fi

progress "Executing ${MODULE} module_remove()"
source ${YAHM_DIR}/share/modules/${MODULE}

_module_remove

Expand Down
3 changes: 0 additions & 3 deletions share/include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ do
then
die "Specified module can not be found"
fi

# Modul laden
source ${YAHM_DIR}/share/modules/${MODULE}
;;
v)
IS_VERBOSE=1
Expand Down
5 changes: 1 addition & 4 deletions share/modules/hm-mod-rpi-pcb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ description="GPIO Funkmodul für Raspberry Pi2/3"
# Default Parameter
file_hm_mod_rpi_pcb='/etc/init.d/hm-mod-rpi-pcb'
file_cmdline_txt='/boot/cmdline.txt'
file_rfd_conf="${LXC_ROOT_FS}/usr/local/etc/config/rfd.conf"
reboot=0 # Neustart ausfuehren

kernel_version=$(uname -r | sed -e 's/-.*//i')
Expand All @@ -21,7 +22,6 @@ fi

_module_install()
{
file_rfd_conf="${LXC_ROOT_FS}/usr/local/etc/config/rfd.conf"

if [ -e ${LXC_ROOT_MODULES}/hm-fake-lan-gw ] && [ $IS_FORCE -ne 1 ]
then
Expand Down Expand Up @@ -176,9 +176,6 @@ EOF

_module_remove()
{

file_rfd_conf="${LXC_ROOT_FS}/usr/local/etc/config/rfd.conf"

if [ "$BOARD_TYPE" != "Raspberry Pi" ] && [ $IS_FORCE -ne 1 ]
then
die "ERROR: This module is for Raspberry Pi only, use -f flag to overwrite this check"
Expand Down

0 comments on commit 6be02bd

Please sign in to comment.