137 |
install -v -m 0644 -o root -g root ${file} ${BINDIR}/${destdir}/${etcfile} || die |
install -v -m 0644 -o root -g root ${file} ${BINDIR}/${destdir}/${etcfile} || die |
138 |
} |
} |
139 |
|
|
140 |
|
minstalludev() |
141 |
|
{ |
142 |
|
local udevrule |
143 |
|
local file |
144 |
|
|
145 |
|
[[ -z "$1" ]] && die "No udev rule given" |
146 |
|
|
147 |
|
# if no fullpath given use file from sourcedir |
148 |
|
if [[ -z $(dirname $1) ]] || [[ $(dirname $1) = . ]] |
149 |
|
then |
150 |
|
file="${SOURCEDIR}/${PNAME}/$1" |
151 |
|
else |
152 |
|
file="$1" |
153 |
|
fi |
154 |
|
|
155 |
|
if [[ -n "$2" ]] |
156 |
|
then |
157 |
|
udevrule="$2" |
158 |
|
else |
159 |
|
udevrule="$(basename ${file})" |
160 |
|
fi |
161 |
|
|
162 |
|
# needed directory |
163 |
|
install -d ${BINDIR}/etc/udev/rules.d || die |
164 |
|
|
165 |
|
# install our initscript |
166 |
|
install -v -m 0755 -o root -g root ${file} ${BINDIR}/etc/udev/rules.d/udevrule || die |
167 |
|
} |
168 |
|
|
169 |
# install man files to appropiate dirs |
# install man files to appropiate dirs |
170 |
# minstallman /path/to/manfile.foo |
# minstallman /path/to/manfile.foo |
171 |
minstallman() |
minstallman() |