Subject: Add a customised shell script to be invked after board bootso #yocto To: yocto@lists.yoctoproject.org From: "Raghu Icecraft Software Trainings" X-Originating-Location: (198.90.65.150) X-Originating-Platform: Windows Chrome 80 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 29 Mar 2020 20:16:01 -0700 Message-ID: Content-Type: multipart/alternative; boundary="GJmFJVnn4YyNkzJEE6fs" --GJmFJVnn4YyNkzJEE6fs Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I have written a shell script to change the password for my root user. I want to execute this script file after board boots So i created .bb file as follows: *SUMMARY =3D "Initscript for enabling root pwd" LICENSE =3D "GPLv2" #LIC_FILES_CHKSUM =3D "file://${WORKDIR}/root_vpd; md5=3D bc4963ad2e7baa1c= 3bdfc9031d8453 f0" PR =3D "r0" SRC_URI =3D "file://root_vpd" S =3D "${WORKDIR}" do_install() { install -d ${D}${sysconfdir} install -d ${D}${sysconfdir}/init.d install -m 0755 root_vpd ${D}${sysconfdir}/init.d } inherit update-rc.d allarch INITSCRIPT_NAME =3D "root-vpd" INITSCRIPT_PARAMS =3D "start 99 5 2 . stop 20 0 1 6 ."* and i copied the script=C2=A0file in the sam efolder BUt when i do bitbake of above recipew i get this error : Parsing recipes: 100% |############################# #####################= ######### ############################## ############################## | T= ime: 0:00:01 Parsing of 1992 .bb files complete (1982 cached, 10 parsed). 4688 targets,= 384 skipped, 1 masked, 0 errors. ERROR: Nothing PROVIDES pwd.bb ( http://pwd.bb/ ) -- Thanks, raghu --GJmFJVnn4YyNkzJEE6fs Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hello,
I have written a shell script to change the password for = my root user.
I want to execute this script file after board boots
So i created .bb file as follows:
 
 
SUMMARY =3D "Initscript for enabling root pwd"
LICENSE =3D "GPLv2"
#LIC_FILES_CHKSUM =3D "file://${WORKDIR}/= root_vpd;md5=3Dbc4963ad2e7baa1c3bdfc9031d8453f0"
=

PR =3D "r0"

SRC_URI =3D "file://root_vpd"
S =3D= "${WORKDIR}"

do_install() {
    install -d ${D}$= {sysconfdir}
    install -d ${D}${sysconfdir}/init.d
&n= bsp;   install -m 0755 root_vpd ${D}${sysconfdir}/init.d
}
<= br />inherit update-rc.d allarch

INITSCRIPT_NAME =3D "root-vpd"<= br />INITSCRIPT_PARAMS =3D "start 99 5 2 . stop 20 0 1 6 ."
 
 
 
and i copied the script file in the sam efolder&nbs= p;
BUt when i do bitbake of above recipew i get this error :=
 
Parsing recipes: 100% |#######################################################################################################################| Time: 0:00:01
Parsing of 1992 = .bb files complete (1982 cached, 10 parsed). 4688 targets, 384 skipped, 1 m= asked, 0 errors.
ERROR: Nothing PROVIDES  pwd.bb
 
 

 
--
Thanks,
raghu
--GJmFJVnn4YyNkzJEE6fs--