-# $OpenBSD: install.md,v 1.36 2014/08/15 09:45:54 rpe Exp $
+# $OpenBSD: install.md,v 1.37 2015/01/12 16:33:31 deraadt Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
MDXAPERTURE=2
MDXDM=y
-MDLID=y
NCPU=$(sysctl -n hw.ncpufound)
((NCPU > 1)) && { DEFAULTSETS="bsd bsd.rd bsd.mp"; SANESETS="bsd bsd.mp"; }
-# $OpenBSD: install.md,v 1.59 2014/08/15 09:45:54 rpe Exp $
+# $OpenBSD: install.md,v 1.60 2015/01/12 16:33:31 deraadt Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
MDXAPERTURE=2
MDXDM=y
-MDLID=y
NCPU=$(sysctl -n hw.ncpufound)
((NCPU > 1)) && { DEFAULTSETS="bsd bsd.rd bsd.mp"; SANESETS="bsd bsd.mp"; }
-# $OpenBSD: install.sub,v 1.808 2015/01/07 19:31:51 rpe Exp $
+# $OpenBSD: install.sub,v 1.809 2015/01/12 16:33:31 deraadt Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
# All rights reserved.
echo "machdep.allowaperture=$aperture # See xf86(4)" \
>>/mnt/etc/sysctl.conf
- [[ -n $lidsuspend ]] &&
- echo "machdep.lidsuspend=1 # Try to suspend on lid close" \
- >>/mnt/etc/sysctl.conf
-
[[ $xdm == y && -x /mnt/usr/X11R6/bin/xdm ]] &&
echo "xdm_flags=" >>/mnt/etc/rc.conf.local
aperture=
xdm=
- lidsuspend=
if [[ -n $DISPLAY ]]; then
if [[ -n $(scan_dmesg '/^[a-z]*[01]: aperture needed/p') ]]; then
ask_yn "Do you expect to run the X Window System?" yes &&
ask_yn "Do you want the X Window System to be started by xdm(1)?"
xdm=$resp
fi
- if [[ -n $MDLID ]]; then
- ask_yn "Do you want to suspend on lid close?" yes && \
- lidsuspend=$resp
- fi
fi
if [[ -n $CDEV ]]; then
-/* $OpenBSD: machdep.c,v 1.205 2015/01/06 12:50:47 dlg Exp $ */
+/* $OpenBSD: machdep.c,v 1.206 2015/01/12 16:33:31 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
paddr_t tramp_pdirpa;
int kbd_reset;
-int lid_suspend;
+int lid_suspend = 1;
/*
* safepri is a safe priority for sleep to set for a spin-wait
-/* $OpenBSD: arm32_machdep.c,v 1.46 2014/11/16 12:30:56 deraadt Exp $ */
+/* $OpenBSD: arm32_machdep.c,v 1.47 2015/01/12 16:33:31 deraadt Exp $ */
/* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */
/*
#endif
#if defined(__zaurus__)
-int lid_suspend;
+int lid_suspend = 1;
extern int xscale_maxspeed;
#endif
-/* $OpenBSD: machdep.c,v 1.560 2014/12/10 15:29:53 mikeb Exp $ */
+/* $OpenBSD: machdep.c,v 1.561 2015/01/12 16:33:31 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
void via_update_sensor(void *args);
#endif
int kbd_reset;
-int lid_suspend;
+int lid_suspend = 1;
/*
* safepri is a safe priority for sleep to set for a spin-wait