source: src-sh/pc-extractoverlay/desktop-overlay/usr/local/etc/rc.d/pcbsdinit @ 93fe45e

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 93fe45e was 93fe45e, checked in by Kris Moore <kris@…>, 15 months ago

Enable GRUB updating when running beadm command

Move some rc.d scripts into PC-BSD specific area, not needed in TrueOS

  • Property mode set to 100755
File size: 638 bytes
Line 
1#!/bin/sh
2
3# PROVIDE: pcbsdinit
4# REQUIRE: DAEMON cups
5# KEYWORD: nojail shutdown
6
7. /etc/rc.subr
8
9name="pcbsdinit"
10rcvar=pcbsdinit_enable
11
12stop_cmd="pcbsdinit_stop"
13start_cmd="pcbsdinit_start"
14
15load_rc_config $name
16
17: ${pcbsdinit_enable=NO}
18
19pcbsdinit_start()
20{
21        echo "Starting PC-BSD init.."
22        if [ -e "/var/.pcbsd-firstboot" ] ; then
23                (/usr/local/share/pcbsd/scripts/first-boot.sh >/dev/null 2>/dev/null ; rm /var/.pcbsd-firstboot)&
24        fi
25
26        # Cleanup cups print jobs
27        /usr/local/bin/cancel -a 2>/dev/null >/dev/null
28
29        # Change Xorg priority
30        ( sleep 40; rtprio 31 -`pgrep Xorg` 2>/dev/null)&
31}
32
33pcbsdinit_stop()
34{
35}
36
37run_rc_command "$1"
Note: See TracBrowser for help on using the repository browser.