Forum rules
Post your scrot in the appropriate section. If the section does not exist yet - open a new thread ;)
-
pidsley
- Hermit
- Posts: 2539
- Joined: Wed Oct 17, 2012 12:31 pm
Unread post
by pidsley » Sat Apr 22, 2017 1:35 am
^ 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
-
GekkoP
- Emacs Sancho Panza
- Posts: 5878
- Joined: Tue Sep 03, 2013 7:05 am
Unread post
by GekkoP » Sat Apr 22, 2017 6:09 am
^ Thanks for that
-
ChefIronBelly
- Approved BBQer
- Posts: 1044
- Joined: Mon Jan 13, 2014 6:01 am
- Location: Michigan
Unread post
by ChefIronBelly » Sun Apr 23, 2017 8:13 pm
^^ good stuff
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]