[arch-general] USB Flash drive problems

Dave Reisner d at falconindy.com
Mon Nov 5 15:03:52 EST 2012


On Mon, Nov 05, 2012 at 08:22:33PM +0100, coderkun wrote:
> Am Montag, den 05.11.2012, 18:22 +0000 schrieb P .NIKOLIC:
> > How do i check to see if it is systemd or not
> 
> $ printf "%d" `systemd-notify --booted`

systemd-notify doesn't print anything. If you really want to print
something:

$ systemd-notify --booted && echo "booted on systemd"

or

$ systemd-notify --booted; echo $?

> 
> man systemd-notify:
> “[…]
> --booted
> Returns 0 if the system was booted up with systemd, non-zero otherwise.
> […]”
> 

Note the "returns", not "prints".

d


More information about the arch-general mailing list