* added support to Emerge -repository w/ repo/*
[t2sde.git] / package / network / rocknet / parse-config
blob1c34e083e4f60ca86c1787bb64204665ab8adb7b
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/rocknet/parse-config
3 # Copyright (C) 2005 - 2024 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if pkginstalled -n rocknet; then
13         # rocknet module install helper
14         #
15         install_rocknet_module() {
16                 local file="$1" libnetwork=lib/network
17                 local mfile="${file##*/}"; mfile=${mfile#rocknet_}
19                 echo "Installing $mfile to /$libnetwork/ ..."
20                 cp -vf $file $root/$libnetwork/$mfile
21         }
23         for x in $(ls -1 $confdir/rocknet_*.sh 2> /dev/null) ; do
24                 hook_add postinstall 4 "install_rocknet_module '$x'"
25         done