Page 10 of 10

Re: Openbox

Posted: Sat Apr 22, 2017 1:35 am
by pidsley
^ That works -- Alpine also creates and populates that directory. Thanks.

Function now looks like:

Code: Select all

printinit() {
	init=$(strings /sbin/init | awk 'match($0, /(upstart|systemd|sysvinit|busybox)/) { print substr($0, RSTART, RLENGTH);exit; }')
	[[ -d /run/openrc/started ]] && init="$init+openrc"
	colorecho Init "$init"
}

And output:

Code: Select all

pidsley@hyrax

OS: Alpine Linux v3.5
Shell: /bin/bash
Init: busybox+openrc
Disk: 586.9M / 1.9G
Mem: 46M / 3532M
Kernel: Linux 4.4.52-0-grsec i686
CPU: Intel Core2 Duo CPU E6550 @ 2.33GHz

Re: Openbox

Posted: Sat Apr 22, 2017 6:09 am
by GekkoP
^ Thanks for that

Re: Openbox

Posted: Sun Apr 23, 2017 8:13 pm
by ChefIronBelly
^^ good stuff