aboutsummaryrefslogtreecommitdiff
path: root/libexec/s6/init2.sh
blob: b7304511f71ac05f7ce02770de23fbbf8c33d437 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# Try state-normal, else fallback to state-basic
if s6-rc-db list bundles | grep -xFq state-normal;then
    s6-rc -u change state-normal
else
    s6-rc -u change state-basic
fi