From 668b904707445b695681912ffe78f5afab58bfd7 Mon Sep 17 00:00:00 2001 From: robert <> Date: Thu, 7 Jul 2011 22:23:56 +0000 Subject: [PATCH] add wsmoused script and switch xdm and wsmoused in rc --- src/etc/Makefile | 6 +++--- src/etc/rc | 11 ++--------- src/etc/rc.d/wsmoused | 11 +++++++++++ 3 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 src/etc/rc.d/wsmoused diff --git a/src/etc/Makefile b/src/etc/Makefile index fffeaf7d..143235c3 100644 --- a/src/etc/Makefile +++ b/src/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.300 2011/07/07 21:00:59 deraadt Exp $ +# $OpenBSD: Makefile,v 1.301 2011/07/07 22:23:56 robert Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= Canada/Mountain @@ -35,8 +35,8 @@ RCDAEMONS= apmd bgpd bootparamd cron dhcpd dhcrelay dvmrpd ftpd ftpproxy \ hostapd hotplugd httpd identd ifstated iked inetd isakmpd \ ldapd ldattach ldpd lpd mopd mrouted named nsd ntpd portmap \ rarpd rbootd relayd ripd route6d rtadvd rtsold rwhod sasyncd \ - sendmail sensorsd smtpd snmpd sshd syslogd watchdogd ypbind \ - ypldap yppasswdd ypserv + sendmail sensorsd smtpd snmpd sshd syslogd watchdogd wsmoused \ + xdm ypbind ypldap yppasswdd ypserv MISETS= base${OSrev}.tgz comp${OSrev}.tgz \ man${OSrev}.tgz game${OSrev}.tgz etc${OSrev}.tgz diff --git a/src/etc/rc b/src/etc/rc index e6110ecd..b5177d88 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.358 2011/07/07 21:00:59 deraadt Exp $ +# $OpenBSD: rc,v 1.359 2011/07/07 22:23:56 robert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -638,14 +638,7 @@ if [ X"${aucat_flags}" != X"NO" ]; then echo -n ' aucat'; aucat -l ${aucat_flags} fi -if [ X"${wsmoused_flags}" != X"NO" -a -x /usr/sbin/wsmoused ]; then - echo -n ' wsmoused'; wsmoused ${wsmoused_flags} -fi - -# Alternatively, on some architectures, xdm may be started in /etc/ttys. -if [ X"${xdm_flags}" != X"NO" -a -x /usr/X11R6/bin/xdm ]; then - echo -n ' xdm'; /usr/X11R6/bin/xdm ${xdm_flags} -fi +start_daemon wsmoused xdm echo '.' exit 0 diff --git a/src/etc/rc.d/wsmoused b/src/etc/rc.d/wsmoused new file mode 100644 index 00000000..d80598ad --- /dev/null +++ b/src/etc/rc.d/wsmoused @@ -0,0 +1,11 @@ +#!/bin/sh +# +# $OpenBSD: wsmoused,v 1.1 2011/07/07 22:23:56 robert Exp $ + +daemon="/usr/sbin/wsmoused" + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_cmd $1