From owner-freebsd-stable@freebsd.org Tue Aug 18 14:13:38 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 C06ED9BC781 for ; Tue, 18 Aug 2015 14:13:38 +0000 (UTC) (envelope-from peixotocassiano@gmail.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (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 8D0C1A96 for ; Tue, 18 Aug 2015 14:13:38 +0000 (UTC) (envelope-from peixotocassiano@gmail.com) Received: by iodv127 with SMTP id v127so174647183iod.3 for ; Tue, 18 Aug 2015 07:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Oau+ckg7waaSQ68rYLT1869oAuVbK7G2H0GbJeewKKk=; b=UvVmnbnLTeTL6rWDVCoTblbyRHAW4LYAggoQ2Kf2p814188tQqvgTBlInltc5lGfCk X6+Oia3klLRzU7AU8SCtXJEoo8fl+OpuZ4JwicLgYwmZGGSKLUcTWYaYFEhTuaP21Lbh C5jjW0FAI5+QTvlMrxA8wmtUZGG85SFuxGCEbsYZ4jnkXjmVwq1i9rvrHNtJ6SQD+tmU pdMbaYpQiqaYTWLh0QrzgokJRhWeiB3Bc7TALt3YdvRmxJs8NO3eyGr2WkQuSkcU6Duh i7LYJNQySiY1EpXXwjKWmpDnNRVLkcsEtKzzdZo5UUowS6DxLtkigs8yt0O+H8xBOfEm COww== MIME-Version: 1.0 X-Received: by 10.107.133.34 with SMTP id h34mr7315685iod.1.1439907217892; Tue, 18 Aug 2015 07:13:37 -0700 (PDT) Received: by 10.36.104.139 with HTTP; Tue, 18 Aug 2015 07:13:37 -0700 (PDT) Date: Tue, 18 Aug 2015 11:13:37 -0300 Message-ID: Subject: 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 14:13:38 -0000 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.