Skip to contentSkip to conversation

Add a customised shell script to be invked after board bootso #yocto

DISCUSSION Raghu Icecraft Software Trainings 1 participant 1 message Mar 30, 2020

lore
Share & tools
lore
#0 lore raw

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 = "Initscript for enabling root pwd"

LICENSE = "GPLv2"
#LIC_FILES_CHKSUM = "file://${WORKDIR}/root_vpd; md5= bc4963ad2e7baa1c3bdfc9031d8453 f0"

PR = "r0"

SRC_URI = "file://root_vpd"
S = "${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 = "root-vpd" INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."*

and i copied the script file in the sam efolder 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 masked, 0 errors.
ERROR: Nothing PROVIDES pwd.bb ( http://pwd.bb/ )

--
Thanks,
raghu