Projects
home:shafeipaozi
kernel
_service:tar_scm:sign-modules-openeuler
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:sign-modules-openeuler of Package kernel
#! /bin/bash sign_module() { sh /usr/lib/rpm/brp-ebs-sign --module $1 &> /dev/null mv $1.sig $1 } sign_module_list() { IFS=$'\n' for m in $1; do sign_module $m & done wait } moddir=$1 find $moddir -name *.ko > module_openeuler_unsign.list row_num=`wc -l module_openeuler_unsign.list | awk '{print $1}'` for((i=1;i<$row_num;i+=10)); do IFS="" sign_module_list $(sed -n "$i,$((i+9))p" module_openeuler_unsign.list) done RANDOMMOD=$(find $moddir -type f -name '*.ko' | sort -R | tail -n 1) if [ "~Module signature appended~" != "$(tail -c 28 $RANDOMMOD)" ]; then echo "*** Modules are unsigned! ***" exit 1 fi exit 0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2