mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-08 12:34:23 +02:00
As requested, busybox-openrc, busybox-mdev-openrc and busybox-extras-openrc are not defined in separate packages, but are now all subpackages of busybox. Thanks to psykose for the mention of amove! Signed-off-by: Laurent Bercot <ska@appnovation.com>
18 lines
253 B
Bash
18 lines
253 B
Bash
#!/sbin/openrc-run
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
keyword -vserver -lxc
|
|
}
|
|
|
|
start() {
|
|
if [ -z "$NTP_HOST" ] ; then
|
|
eerror "Please set NTP_HOST in /etc/conf.d/rdate"
|
|
return 1
|
|
fi
|
|
ebegin "Running busybox rdate"
|
|
rdate "$NTP_HOST"
|
|
eend $?
|
|
}
|
|
|