summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Farina <zerochaos@gentoo.org>2013-07-05 16:53:22 -0500
committerWilliam Hubbs <williamh@gentoo.org>2013-07-05 16:54:41 -0500
commit793efb2eef4ea146b6e0db90f11e03fd193246be (patch)
treec991e69df7c82fa1a642d03ae2bbed8b42c05913
parentautoconfig: update network device name recognission (diff)
downloadlivecd-tools-793efb2eef4ea146b6e0db90f11e03fd193246be.tar.gz
livecd-tools-793efb2eef4ea146b6e0db90f11e03fd193246be.tar.bz2
livecd-tools-793efb2eef4ea146b6e0db90f11e03fd193246be.zip
fixinittab: Do not overwrite an existing backup
-rwxr-xr-xinit.d/fixinittab5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.d/fixinittab b/init.d/fixinittab
index c485637..56bfbcc 100755
--- a/init.d/fixinittab
+++ b/init.d/fixinittab
@@ -14,7 +14,10 @@ start()
ebegin "Adjusting inittab"
# Create a backup
- cp -f /etc/inittab /etc/inittab.old
+ if [ ! -e /etc/inittab.old ]
+ then
+ cp -f /etc/inittab /etc/inittab.old
+ fi
# Comment out current getty settings
sed -i -e '/^c[0-9]/ s/^/#/' /etc/inittab