From owner-freebsd-stable@freebsd.org Tue Aug 18 19:06:21 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 554179BC1E3 for ; Tue, 18 Aug 2015 19:06:21 +0000 (UTC) (envelope-from peixotocassiano@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (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 21042895 for ; Tue, 18 Aug 2015 19:06:21 +0000 (UTC) (envelope-from peixotocassiano@gmail.com) Received: by iodb91 with SMTP id b91so200263645iod.1 for ; Tue, 18 Aug 2015 12:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1bHbRTMPbr2aUHvBVp7PzBp3BIcEFcr7TvpBiNQul9s=; b=yDLlIGW9Xdc2gj+SPhDaiLj1PJfPX+rzrzqbmhdqmDsO5xQUV+on5jFjRm8WE15tNQ AnPpifvn4AK0WCiTUk9QGSBJhaSS8BSObP6xs8EtpFUwPtKm8ySU+bl47umTjFpgS4mB 4pA6pGAa3pm2vzMj73DnSHbMSVgr6O+juHyb2Dy1ryZB76Hb5sd0Qf/v0x0EQWUHbsYA zEOywC8ggx+MJ72xk1jukXa3Hhh8cdKWhcXxlo/5dAOBY7tAd3spX67ERBRDlrxwHQ9t 0CK9Ly+/2vZM8Uin3lyC8u402IO7mIKgUvFn824FYvcwiXfAlryqWz94AvYwdjyvf2N0 tTJA== MIME-Version: 1.0 X-Received: by 10.107.166.72 with SMTP id p69mr10229082ioe.65.1439924780188; Tue, 18 Aug 2015 12:06:20 -0700 (PDT) Received: by 10.36.104.139 with HTTP; Tue, 18 Aug 2015 12:06:20 -0700 (PDT) In-Reply-To: References: Date: Tue, 18 Aug 2015 16:06:20 -0300 Message-ID: Subject: Re: Issue with /boot/menu.rc.local after 10.2 update From: Cassiano Peixoto To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 19:06:21 -0000 I just found out the problem. I don't know who added the following phrase to /boot/menu-commands.4th: only forth definitions Line 31 and 354. It just broke /boot/menu.rc.local as i said before. After removing that everything worked again. Hope it helps someone else. I'm going to open a PR anyway. Thanks. On Tue, Aug 18, 2015 at 11:13 AM, Cassiano Peixoto < peixotocassiano@gmail.com> wrote: > Hi guys, > > I've been using /boot/menu.rc.local for years to my custom menu option. > But after 10.2 update, it's not working anymore. I always get the message > "toggle_menuitem not found" on beastie menu. > > Here is my /boot/menu.rc.local: > > set optionsmenu_init[7]="init_console" > set optionsmenu_caption[7]="[C]onsole..... Off" > set optionstoggled_text[7]="[C]onsole..... On" > set optionsmenu_command[7]="toggle_console" > set optionsmenu_keycode[7]=118 > set optionsansi_caption[7]="^[[1mC^[[37monsole..... ^[[34;1mOff^[[37m" > set optionstoggled_ansi[7]="^[[1mC^[[37monsole..... ^[[32;7mOn^[[0;37m" > > \ > \ Console Boot > \ > > : console_enabled? ( -- flag ) > s" boot_single" getenv -1 <> dup if > drop ( c-addr flag -- flag ) > then > ; > > : console_enable ( -- ) > s" set console=comconsole,vidconsole" evaluate > ; > > : console_disable ( -- ) > s" set console=vidconsole,comconsole" evaluate > ; > > : toggle_console ( N -- N TRUE ) > toggle_menuitem > menu-redraw > > \ Now we're going to make the change effective > > dup toggle_stateN @ 0= if > console_disable > else > console_enable > then > > TRUE \ loop menu again > ; > > So what has changed? What should i do to make it works again? > > Thanks. > > > >