It is currently Thu May 17, 2012 11:57 pm



Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!


Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problems with mepis-init.
PostPosted: Fri Jul 10, 2009 4:59 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 3601
Location: Greece
If you have upgraded recently, you may get an error message regarding mepis-init and/or initscripts.

The long-term solution is to remove mepis-init, but DO NOT DO THIS UNTIL YOU HAVE BACKED UP THESE IMPORTANT FILES. Otherwise your box will not be able to boot.

/etc/rc.local
/etc/default/rcS
/etc/init.d/sendsigs
/etc/kernel-img.conf
/usr/sbin/buildxconfig
/usr/sbin/buildfstab
/usr/sbin/scanpartitions

Then apt-get purge mepis-init.

Restore the backup files.
Reboot.

I have written a script to do this. Put it in /home user folder, call it antiX-post.sh, make it executable and run as root.

Code:
#!/bin/bash
      cp /etc/rc.local /etc/rc.local.old
      cp /etc/default/rcS /etc/default/rcS.old
      cp /etc/init.d/sendsigs /etc/init.d/sendsigs.old
      cp /etc/kernel-img.conf /etc/kernel-img.conf.old
      cp /usr/sbin/buildxconfig /usr/sbin/buildxconfig.bak
      cp /usr/sbin/buildfstab /usr/sbin/buildfstab.bak
      cp /usr/sbin/scanpartitions /usr/sbin/scanpartitions.bak
      apt-get remove --purge mepis-init -y -qq
      mv /etc/rc.local.old /etc/rc.local
      mv /etc/default/rcS.old /etc/default/rcS
      mv /etc/init.d/sendsigs.old /etc/init.d/sendsigs
      mv /etc/kernel-img.conf.old /etc/kernel-img.conf
      mv /usr/sbin/buildxconfig.bak /usr/sbin/buildxconfig
      mv /usr/sbin/buildfstab.bak /usr/sbin/buildfstab
      mv /usr/sbin/scanpartitions.bak /usr/sbin/scanpartitions
]

Or if you prefer run each step line by line as root in terminal.


The short-term solution is to force mepis-install.

#dpkg -i --force-all /var/cache/apt/archives/mepis-init*.deb
#apt-get -f install.

Then keep initscripts on hold.

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred