summaryrefslogtreecommitdiff
path: root/src/backend/libvasile.sh
blob: ee2e3576c8842cdc626ee01c9ed57b75d9628ad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

if [[ -f /lib/gentoo/functions.sh ]] ; then
	source /lib/gentoo/functions.sh
else
	echo "I won't do that without sys-apps/gentoo-functions"
	exit 1
fi

if [[ -f /usr/lib/vasile/jailvars.sh ]] ; then
	source /usr/lib/vasile/jailvars.sh
else
	source jailvars.sh
fi

if [[ -f /usr/lib/vasile/jailcmds.sh ]] ; then
	source /usr/lib/vasile/jailcmds.sh
else
	source jailvars.sh
fi

if [[ -f /usr/lib/vasile/jailfuncs.sh ]] ; then
	source /usr/lib/vasile/jailfuncs.sh
else
	source jailfuncs.sh
fi