Commit 0472849c authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: implement initdcheck

this check verifies that the *.initd scripts are #!/sbin/runscript
parent f580e665
......@@ -254,11 +254,27 @@ fetch() {
# verify that all init.d scripts are openrc runscripts
initdcheck() {
local i
for i in $source; do
case $i in
head -n 1 "$srcdir"/$i | grep -q '/sbin/runscript' \
&& continue
error "$i is not an openrc #!/sbin/runscript"
return 1
# unpack the sources
default_unpack() {
local u
if [ -z "$force" ]; then
md5check || return 1
initdcheck || return 1
mkdir -p "$srcdir"
for u in $source; do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment