firstsetup: don't overwrite meta-linux-pae if already present.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 11 Sep 2013 22:51:50 +0000 (00:51 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 11 Sep 2013 22:51:50 +0000 (00:51 +0200)
src/initscripts/init.d/firstsetup

index 0d3f448c9ee6ce611e7e566b6ce4f2cecc00c40b..29de499a001a6984e2738ac01d3fcd72c9d842c2 100644 (file)
@@ -35,11 +35,11 @@ if [ "${?}" == "1" ]; then
 fi
 
 # plan install pae kernel at next pakfire update if pae is supported
-rm -rf /opt/pakfire/db/*/meta-linux-pae
 if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
-       echo "Name: linux-pae" > /opt/pakfire/db/installed/meta-linux-pae
-       echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-pae
-       echo "Release: 0"     >> /opt/pakfire/db/installed/meta-linux-pae
+       if [ ! -e /opt/pakfire/db/installed/meta-linux-pae ]; then
+               echo "Name: linux-pae" > /opt/pakfire/db/installed/meta-linux-pae
+               echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-pae
+               echo "Release: 0"     >> /opt/pakfire/db/installed/meta-linux-pae
 fi
 
 echo Restarting udev...