/[smeserver]/rpms/slip-kmod/sme7/kmodtool-slip
ViewVC logotype

Diff of /rpms/slip-kmod/sme7/kmodtool-slip

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by slords, Wed Oct 28 18:41:30 2009 UTC Revision 1.3 by slords, Wed Apr 21 16:05:56 2010 UTC
# Line 131  EOF Line 131  EOF
131            
132      if [ ! -z "$kmp" ]; then      if [ ! -z "$kmp" ]; then
133          cat <<EOF          cat <<EOF
134  modules=( \$(rpm -ql kmod-${kmod_name}${dashvariant} | grep '\.ko$') )  modules=( \$(cat /usr/share/doc/kmod-${kmod_name}/${verrel}/modules${dashvariant}) )
135  if [[ ! -z "\$modules" && -x "/sbin/weak-modules" ]]; then  if [[ ! -z "\$modules" && -x "/sbin/weak-modules" ]]; then
136      printf '%s\n' "\${modules[@]}" \      printf '%s\n' "\${modules[@]}" \
137      | /sbin/weak-modules --add-modules      | /sbin/weak-modules --add-modules
138  fi  fi
139  %preun         -n kmod-${kmod_name}${dashvariant}  %preun         -n kmod-${kmod_name}${dashvariant}
140  rpm -ql kmod-${kmod_name}${dashvariant} | grep '\.ko$' \  cp /usr/share/doc/kmod-${kmod_name}/${verrel}/modules${dashvariant} \
141      > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules || :      > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
142  EOF  EOF
143                    
144      fi      fi
# Line 152  EOF Line 152  EOF
152      if [ ! -z "$kmp" ]; then      if [ ! -z "$kmp" ]; then
153          cat <<EOF          cat <<EOF
154  modules=( \$(cat /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules) )  modules=( \$(cat /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules) )
 #rm /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules  
155  if [[ ! -z "\$modules" && -x "/sbin/weak-modules" ]]; then  if [[ ! -z "\$modules" && -x "/sbin/weak-modules" ]]; then
156      printf '%s\n' "\${modules[@]}" \      printf '%s\n' "\${modules[@]}" \
157      | /sbin/weak-modules --remove-modules      | /sbin/weak-modules --remove-modules
# Line 167  if [ "" == "$kmp_override_filelist" ]; Line 166  if [ "" == "$kmp_override_filelist" ];
166  then  then
167      echo "%defattr(644,root,root,755)"      echo "%defattr(644,root,root,755)"
168      echo "/lib/modules/${verrel}${variant}/"      echo "/lib/modules/${verrel}${variant}/"
169        echo "%dir /usr/share/doc/kmod-${kmod_name}/${verrel}/"
170        echo "/usr/share/doc/kmod-${kmod_name}/${verrel}/modules${dashvariant}"
171  else  else
172      cat "$kmp_override_filelist"      cat "$kmp_override_filelist"
173  fi  fi


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed