From hitman, 1 Week ago, written in Plain Text.
This paste will go to its last resting place in 2 Weeks.
Embed
  1. startup_list() { enabled=$({ grep -rl 'waits-for.d' /etc/dinit.d; find /etc/dinit.d/*.d -not -type d; } | cut -d/ -f4); addtree() { enabled+=$(while read -r sb; do grep -rl "waits-for.*$sb" /etc/dinit.d | cut -d/ -f4 & done <<<"$enabled" | sort -u); }; addtree; addtree; addtree; addtree; availserv | while read -r srv; do grep -q $srv <<<"$hidden" && continue; grep -q $srv <<<"$enabled" && echo "$srv [ Enabled ]" || echo "$srv ///Available///"; done; }
captcha