source: src-sh/pc-extractoverlay/ports-overlay/usr/local/etc/rc.d/pcbsdinit @ 1620346

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 1620346 was 1620346, checked in by Kris Moore <kris@…>, 16 months ago

Initial import of PC-BSD /current/ SVN repo

  • 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.