You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
633 B
26 lines
633 B
#!/usr/bin/env bash
|
|
|
|
DEBUGMODE=no
|
|
. /usr/lib/ublinux/functions
|
|
debug_mode "$0" "$@"
|
|
|
|
for a in /usr/lib/ublinux/rc.post.d/* ;do
|
|
[ -x $a ] && $a 2>/dev/null &
|
|
done
|
|
for a in /usr/lib/ublinux/rc.post/* ;do
|
|
[ -x $a ] && $a 2>/dev/null
|
|
done
|
|
|
|
# We have to launch some rc scripts from external modules
|
|
LOCKDIR=/var/lock/ublinux/rc.runonce
|
|
[ -d "$LOCKDIR" ] || mkdir -p "$LOCKDIR"
|
|
for a in /usr/lib/ublinux/rc.runonce/* ;do
|
|
[ -f "$LOCKDIR/$(basename $a)" -o ! -x "$a" ] && continue
|
|
$a start 2>/dev/null
|
|
touch "$LOCKDIR/$(basename $a)"
|
|
done
|
|
|
|
readlink -fq /usr/bin/init 2>/dev/null | grep -q "lib/systemd/systemd$" && wait
|
|
|
|
true
|