From 03bf0af45bcde46319e4c81abf1eee440a573ace Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 16 Mar 2011 09:06:27 +0000 Subject: main/alpine-baselayout: upgrade to 2.1.0 and fix modprobe.d Newer versions of module-init-tools requires files in modprobe.d to have .conf extension. In order for upgraders to keep their module configs we need to rename our files in /etc/modprobe.d. We do so in a pre-upgrade script. --- main/alpine-baselayout/alpine-baselayout.pre-upgrade | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main/alpine-baselayout/alpine-baselayout.pre-upgrade (limited to 'main/alpine-baselayout/alpine-baselayout.pre-upgrade') diff --git a/main/alpine-baselayout/alpine-baselayout.pre-upgrade b/main/alpine-baselayout/alpine-baselayout.pre-upgrade new file mode 100644 index 0000000000..7ba635eb99 --- /dev/null +++ b/main/alpine-baselayout/alpine-baselayout.pre-upgrade @@ -0,0 +1,15 @@ +#!/bin/sh + +# we need to have our modprobe.d files with .conf suffix +for i in /etc/modprobe.d/*; do + # ignore files that does not exist (i.e if modprobe.d is empty) + [ -r "$i" ] || continue + + # ignore files that has an extention + case "$i" in + *.*) continue;; + esac + + # append extension + mv "$i" "$i".conf +done -- cgit v1.2.3