summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/rs9113immunity.inc
blob: 87521addcebb02c4512a013bd9890dc07fc5d460 (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
27
28
29
30
31
32
33
34
35
36
37
DESCRIPTION = "Immunity testing for rs9113"
SECTION = "base"
PRIORITY = "optional"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
PACKAGE_ARCH = "mtcdt"
SRC_URI = " \
    file://immunity/bluetoothXfer.sh \
    file://immunity/LICENSE.txt \
    file://immunity/readme.txt \
    file://immunity/tworadio.sh \
    file://immunity/mguest2g.conf \
    file://immunity/mguest5g.conf \
    file://immunity/conduitr2g.conf \
    file://immunity/conduitr5g.conf \
    file://immunity/wifiXfer.sh \
    file://immunity/SHA256SUMS \
    "

FILES_${PN} = "/opt/immunity ${sysconfdir}/wpa_supplicant"

do_install() {
   install -m 0755 -d ${D}/opt/immunity
   install -d ${D}${sysconfdir}/wpa_supplicant
   ls ${WORKDIR} >/tmp/jaklog.txt
   echo ${WORKDIR} >>/tmp/jaklog.txt
   install -m 0644 ${WORKDIR}/immunity/*.conf ${D}${sysconfdir}/wpa_supplicant
   ln -s /etc/wpa_supplicant/conduitr5g.conf ${D}${sysconfdir}/wpa_supplicant/wifitest.conf
   install -m 0755 ${WORKDIR}/immunity/*.sh ${D}/opt/immunity
   install -m 0644 ${WORKDIR}/immunity/*.txt ${D}/opt/immunity
   pwd >>/tmp/jaklog.txt
   cd ${D}/opt/immunity
   dd if=/dev/urandom of=btfile count=40000
   chmod 0644 btfile
   chown root:root btfile
   pwd >>/tmp/jaklog.txt
}