Re: USB Flash drive problems

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



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux