Bug 441908 - syntax error in /etc/rc.d/init.d/firstboot
Summary: syntax error in /etc/rc.d/init.d/firstboot
Keywords:
Status: CLOSED DUPLICATE of bug 441016
Alias: None
Product: Fedora
Classification: Fedora
Component: firstboot
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Chris Lumens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-10 18:06 UTC by archimerged Ark submedes
Modified: 2008-04-11 05:53 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-11 05:53:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description archimerged Ark submedes 2008-04-10 18:06:28 UTC
+++ This bug was initially created as a clone of Bug #441511 +++

Splitting out the minor problem so it can be marked closed.

Description of problem:
Syntax error in /etc/rc.d/init.d/firstboot

Version-Release number of selected component (if applicable):
rawhide 20080409
firstboot-1.95-3.fc9.i386


How reproducible:
100%

-- Additional comment from archimerged on 2008-04-09 19:25 EST --
Created an attachment (id=301907)
Patch /etc/rc.d/init.d/firstboot

Fix syntax error and update comments in /etc/rc.d/init.d/firstboot.  Correct
the description in both chkconfig and INIT INFO sections.

grep -qs returns 0 (true) if the file exists and the string is present.
It returns 1 (false) if the string is absent.
It returns 2 (false) if the file is absent.

[beta@beta firstboot]$ cat /etc/sysconfig/firstboot 
RUN_FIRSTBOOT=NO
[beta@beta firstboot]$ if grep -qs 'RUN_FIRSTBOOT=NO'
/etc/sysconfig/nonexistant-file; then echo true; else echo false; fi
false
[beta@beta firstboot]$ if grep -qs 'RUN_FIRSTBOOT=NO' /etc/sysconfig/firstboot;
then echo true; else echo false; fi
true
[beta@beta firstboot]$ if grep -qs 'string not present'
/etc/sysconfig/firstboot; then echo true; else echo false; fi
false

Comment 1 Chris Lumens 2008-04-11 05:53:33 UTC

*** This bug has been marked as a duplicate of 441016 ***


Note You need to log in before you can comment on or make changes to this bug.