Re: Openbox
Posted: Sat Apr 22, 2017 1:35 am
^ That works -- Alpine also creates and populates that directory. Thanks.
Function now looks like:
And output:
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