From owner-freebsd-questions@freebsd.org Wed Jun 13 23:40:10 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88D591001B1F for ; Wed, 13 Jun 2018 23:40:10 +0000 (UTC) (envelope-from jungleboogie0@gmail.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FD6D82929 for ; Wed, 13 Jun 2018 23:40:10 +0000 (UTC) (envelope-from jungleboogie0@gmail.com) Received: by mail-io0-x22c.google.com with SMTP id l19-v6so5304592ioj.5 for ; Wed, 13 Jun 2018 16:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d+eR5rs+83SpKP3vcH43bSiESmvC7M6S3IqP8+OveSY=; b=K/dxcCvj0NzK9VRLfsnxJ4YJYGASPwG6bMytCBBxPCa0dkhObQ7i5ZhmoGsw+kQKVm HstagCVTudtcG8ql4CnQqRjbNdXvB9DPZc/0xFwkirgd164NbJ4lmVR0Ypi56sHvVnpp FMbP0c64ahCAF6sSyVIOqChNpdTwIWXt5cJ5HcxASAVffLU40mf5VZ5szhvuFTDASgsS IsoIwRw2QSM5EMQiU8Uqi3PfqYVjNi1YI1oYa3AZ5zow1xEkaEgxd6NrIgmSSjXHZhmt ElywXwoVegZ8nQVUGLpeWYi/1uJDI2YMuP8QcW8vpQLcHYrPb6ooaxOcTOyYav1QXjkN XNhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d+eR5rs+83SpKP3vcH43bSiESmvC7M6S3IqP8+OveSY=; b=mqK90lR65yByICmQAUCS2JT7s6qJsOBG6lsdcEeHXS+Q+GRTgRorA7u5JukkToXuab L/7EMdBTat5nYVHlO+MDVuMF6q8Zz8CBSp3S/eyyrxSGbW8gdYMfWHbnx7hTxSyeT+Iw KMMpgAkrHXyF/5x7roxU2PBu7RMTSTWMmREQx7JkIVtGslN1DWUexgET3KDcev61zZf0 28YIZgolVVaYXdpQ+xSPdjo1EHiw/U6NWpvDfZe+lwZ3JbjxLw3wOicqPt6801rgPQcJ /QF9b1bxm8x6OZKM1IqNlyut8f+J92qr31ZPRMnlrA+00WKPw5HW/cBzDh0FAtfS9rj1 IQfg== X-Gm-Message-State: APt69E04SD+L3q3hkIGqF2ZpX8RsP+QwlqoVDhz0YbVghKsHmdOWyCau OtmhLusl7TOHTsagWIfs2njh9Z+w234k/DTSae4= X-Google-Smtp-Source: ADUXVKLwLuxp0sbiQeQNnHcPfUanG57dQTpbq1RRPkBmqW82oi+be9zAxGoafof4B9xcgI2hYa/y03leckOAX8jMr+s= X-Received: by 2002:a6b:dd1:: with SMTP id 200-v6mr278433ion.122.1528933209679; Wed, 13 Jun 2018 16:40:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: jungle Boogie Date: Wed, 13 Jun 2018 16:39:21 -0700 Message-ID: Subject: Re: How to detect single user mode in FreeBSD ? To: Manish Jain Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2018 23:40:10 -0000 On 8:10AM, Tue, Jun 12, 2018 Manish Jain wrote: > > Hi, > > > I am writing an fsck wrapper which first needs to check if the system is > in single user mode. > Describe the problem you want to solve, not how.