Re: F12 -> F14 (via preupgrade), not so smooth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



stan wrote:
> On Wed, 17 Nov 2010 14:56:04 -0500
> Bill Davidsen<davidsen@xxxxxxx>  wrote:
>
>> stan wrote:
>
>>> #Fix console loglevel
>>> if [ -n "$LOGLEVEL" ]; then
>>>         /bin/dmesg -n $LOGLEVEL
>>> else
>>>         /bin/dmesg -n 3
>>> fi
>>
>> /bin/dmesg -n ${LOGLEVEL:-3}
>
> That's slick.  I presume you meant
> /bin/dmesg -n ${LOGLEVEL:3}
> changing the -3 to a 3?  I didn't look up the documentation, just
> extrapolating.

What I wrote means to use the $LOGLEVEL value if defined, else to use the 
default value "3". See the bash manual for operators, there are a bunch, of 
which ":-" is the one I use most often.

-- 
Bill Davidsen <davidsen@xxxxxxx>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux