-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env sh | ||
|
||
openrc_services=`rc-update | grep -v boot | grep -v nonetwork | grep -v shutdown | grep -v ntpd | grep -v dbus | grep -v webcamd | grep -v cupsd | grep -v lightdm | grep -v 'avahi-daemon' | grep -v 'avahi-dnsconfd' | cut -d '|' -f 1` | ||
echo $openrc_services | ||
|
||
# set default services | ||
sysrc zfs_enable="YES" | ||
sysrc kld_list+="linux linux64 cuse fusefs" | ||
sysrc linux_enable="YES" | ||
sysrc ntpd_enable="YES" | ||
sysrc ntpd_sync_on_start="YES" | ||
sysrc devfs_enable="YES" | ||
sysrc devfs_system_ruleset="devfsrules_common" | ||
sysrc dbus_enable="YES" | ||
sysrc lightdm_enable="YES" | ||
sysrc webcamd_enable="YES" | ||
sysrc cupsd_enable="YES" | ||
sysrc avahi_daemon_enable="YES" | ||
sysrc avahi_dnsconfd_enable="YES" | ||
|
||
for service in $openrc_services ; do | ||
sysrc `echo $service | tr - _`_enable="YES" | ||
done | ||
|
||
sysrc -f /boot/loader.conf rc_system="bsdrc |