Skip to content

Commit

Permalink
adding change_rc.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbsd committed Aug 20, 2021
1 parent c7796ae commit 6b6f76c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions change_rc.sh
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

0 comments on commit 6b6f76c

Please sign in to comment.