table.
Operator Function Example
${foo:-bar} If $foo exists and is not null, return $foo. If it doesn't exist or is null, return bar. export ... =""
echo ${foo:-one}
one
echo $foo
${foo:=bar} If $foo exists and is not null, return $foo. If it doesn't exist or is null, set $foo to bar and ... echo ${foo:=one}
one
echo $foo
one
${foo:+bar} If $foo exists and is not null, return bar. If it doesn't exist, or is null, return a null. exp... "
echo ${foo:+bar}
bar
${foo:?"error message"} If $foo exists and is not null, return its value. If it doesn't exist or is null, print the error mess
IF-Operator ======
<code bash>
#!/bin/bash
X=""
if [ -n "$X" ]; then # -n tests to see if the argument is non empty
echo "the varia... but its likely to be all you'll need to remember (if you need anything else, you can always check the bash manpage ... )
operator
produces true if...
number of operands
-n
operand non zero lengt... erators and numeric comparison operators as well. If the file argument to one of the primaries is of t
filter.
E_NOARGS=65
E_NOTFOUND=66
E_NOTGZIP=67
if [ $# -eq 0 ] # same effect as: if [ -z "$1" ]
# $1 can exist, but be empty: zmore ... status of script (error code).
fi
filename=$1
if [ ! -f "$filename" ] # Quoting $filename allows... Error message to stderr.
exit $E_NOTFOUND
fi
if [ ${filename##*.} != "gz" ]
# Using bracket in va... # Uses the 'more' filter.
# May substitute 'less' if desired.
exit $? # Script returns exit status
ll then install and configure the driver for you. If this does not provide the optimal solution you we... estricted modules installed. Run it just in case. If the third line fails, you probably don't have the... etc/X11/xorg.conf
</code>
In the device section, if it is not already there add:
<code>
/etc/X11/xor... ype
<code>
$ fglrxinfo
</code>
into a terminal. If the vendor string is not ATI, but Mesa, check [[#
.222.222,208.67.220.220;
# save and exit
$ sudo ifdown eth0 && sudo ifup eth0
</code>
You may be required to change eth0 to your own network device's name if it uses a non-standard name.
og files and such. This
# is particulary useful if you have multiple UPSes. This does not
# set th... # Server. This is used if you don't have
# a UPS... ccontrol only after the
# ONBATTERYDELAY time. If you don't want to be annoyed by short
# powerfa... curs will cause the initation of a shutdown.
#
# If during a power failure, the remaining battery per
to do this. The guide will make a lot more sense if you do this. Nautilus is the default file manager of gnome. If you are using a kde or xfce live cd the syntax may be different below so please install nautilus if that is the case with this command.
<code>~ $ sudo apt-get install nautilus</code>
If you are confident in your ability to use the moun... da6. I am going to assume you know how to do this if you want to manually mount your partitions.
Next
ter text; the test is applied to the current page if empty, or the next page otherwise.
<code><!-- F... ter text; the test is applied to the current page if empty, or the next page otherwise.
<code><!-- F... ter text; the test is applied to the current page if empty, or the next page otherwise.
<code><!-- H... der text; the test is applied to the current page if empty, or the next page otherwise.
<code><!-- H
s the network key you need to authenticate.
Well if its on (almost) every packet generated by the client or AP, then if we collect enough of them, like a few hundred tho... by launching a Deauthentication Attack, but only if there is a real client already connected (you can tell in airodump). If there are no connected clients, you're outta luck... ere were no clients connected in the first place! If it fails, there may be MAC Address Filtering on so if you really want to use this, you'll have to sniff
and quickly is called /sbin/fastshutdown.sh
So, if you comment out the line in /etc/acpi/lidbtn.sh t... c/acpi/button/lid/LID/state | awk '{print $2 }'`
if [ $LID_STATE = "closed" ] ; then
/etc/acp... c/acpi/button/lid/LID/state | awk '{print $2 }'`
if [ $LID_STATE = "closed" ] ; then
# /etc/a...
See also [[eeePC:fastshutdown]]
==== Shutdown if on battery ====
Because suspend is still a desir
it whenever it's on.
Hope this howto's useful, if you get it working, please post and let me know! If you do anything cool or extra, also please let me... tle limited. With that in mind, I'd appreciate it if anyone who knows a bit more about this than I do could tell me if I've done anything wrong, missed anything out, or... t
Exclamation The following step can be risky, if it fails, you will not log on your computer to a ... way, so please try to ommit this step and tell me if it worked without changing xorg.conf.
cd /etc/X
iSD slot, NOT a MicroSD one! Get a MiniSD adapter if you want to use a MicroSD.
* You can use a scre... pplication is up to every single application.
* If you notice some stuck pixel(s) on your Dingoo, yo... flashing procedure. Or check the Wiki.
Note that if you flash a foreign firmware, you'll want to put ... n some edition(s) of Windows 7 and Windows Vista. If the device isn't recognised, try the Windows-XP b