# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/stone/parse-config # Copyright (C) 2005 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- if pkginstalled -n stone; then # stone module install helper # install_stone_module() { local file="$1" stoned=etc/stone.d local mfile="${file##*/}" mfile=${mfile#stone_} echo "Installing $mfile to /$stoned/ ..." cp -vf $file $root/$stoned/$mfile } for x in $(ls -1 $confdir/stone_*.sh 2> /dev/null) ; do hook_add postinstall 3 "install_stone_module '$x'" done fi