aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-04-18 12:59:13 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-04-18 12:59:13 +0000
commit80cbdae593a37240b24b03fd57e705248de9846a (patch)
treeb00890533b3ba24427559791cd0b8464483852d4 /testing
parent57b8e2e4affbda9b03e980d8b7bb4820c8b81357 (diff)
downloadaports-80cbdae593a37240b24b03fd57e705248de9846a.tar.bz2
aports-80cbdae593a37240b24b03fd57e705248de9846a.tar.xz
testing/targetcli: load necessary modules at initd startup
Diffstat (limited to 'testing')
-rw-r--r--testing/targetcli/APKBUILD3
-rwxr-xr-xtesting/targetcli/targetcli.initd4
2 files changed, 6 insertions, 1 deletions
diff --git a/testing/targetcli/APKBUILD b/testing/targetcli/APKBUILD
index 7e4b44d2a9..f0639458fc 100644
--- a/testing/targetcli/APKBUILD
+++ b/testing/targetcli/APKBUILD
@@ -4,7 +4,7 @@ pkgname=targetcli
pkgver=2.0_rc1_p11
_ver=${pkgver/_rc/rc}
_ver=${_ver/_p/.fb}
-pkgrel=0
+pkgrel=1
pkgdesc="An administration shell for storage targets"
url="https://github.com/agrover/targetcli-fb"
arch="noarch"
@@ -58,6 +58,7 @@ package() {
cd "$_builddir"
python setup.py install --root="$pkgdir"
mkdir -p "$pkgdir"/var/lib/target/fabric
+ mkdir -p "$pkgdir"/etc/target
install -D -m644 $pkgname.8.gz "$pkgdir"/usr/share/man/man8/$pkgname.8.gz
install -D -m755 ../../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
diff --git a/testing/targetcli/targetcli.initd b/testing/targetcli/targetcli.initd
index e14ebca328..3dbbb9ec53 100755
--- a/testing/targetcli/targetcli.initd
+++ b/testing/targetcli/targetcli.initd
@@ -2,6 +2,7 @@
description="Administration tool for managing RisingTide Systems storage targets"
command="/usr/bin/targetcli"
+modules="target_core_mod iscsi_target_mod"
depend() {
need net
@@ -11,6 +12,9 @@ depend() {
start() {
ebegin "Starting ${RC_SVCNAME}"
mount -t configfs none /sys/kernel/config
+ for mod in modules; do
+ modprobe $mod
+ done
$command restoreconfig clear_existing=true
eend $?
}