Hier mein Weg, wie man auch in fli4l 3.2 bzw. 3.4 wieder ein Menu am Login-Prompt bekommt :

Damit keine Verwirrung aufkommt, sei erwähnt, dass inzwischen aus alledem das opt_menu geworden ist, dass in der offiziellen opt-db zu finden ist. Es besteht also kein Grund mehr, diese Änderungen von Hand durchzuführen !

 

Folgendes habe ich aus einem Posting in der fli4l-Newsgroup kopiert :


base.exp "original"
--------------

things: an ip address, a network specification, a reference to ip_net_x or a
hostname/fqdn'
FW_LOG_LIMIT = '(RE:FW_LIMIT_EXPR)'
: 'invalid limit specification'
EFW_LOG_LIMIT = '()|(RE:FW_LOG_LIMIT)|none'
: 'invalid limit specification, should be empty, none or a
valid limit'
KEYBOARD_LOCALE = '()|([[:alpha:]][[:alpha:]][-_.[:alnum:]]*)'
: 'wrong locale, please select auto, off, or a name that
matches a mapfile in opt/etc like de matches opt/etc/de.map.'
HOST_IP = '(RE:FW_NET_IP)|(RE:IPADDR)' : 'use either an ip address
or a reference to one of the IP_NET_x-Variables (i.e. IP_NET_1_IPADDR)'
HOST_NAME = 'HOSTNAME|(RE:HOSTNAME)'

in :
---------------

things: an ip address, a network specification, a reference to ip_net_x or a
hostname/fqdn'
FW_LOG_LIMIT = '(RE:FW_LIMIT_EXPR)'
: 'invalid limit specification'
EFW_LOG_LIMIT = '()|(RE:FW_LOG_LIMIT)|none'
: 'invalid limit specification, should be empty,none or a
valid limit'
MENU_LANG = '()|(RE:LANG)'
: 'language is not available, please choose between de, en,
fr and nl'
KEYBOARD_LOCALE = '()|([[:alpha:]][[:alpha:]][-_.[:alnum:]]*)'
: 'wrong locale, please select auto, off, or a name that
matches a mapfile in opt/etc like de matches opt/etc/de.map.'
HOST_IP = '(RE:FW_NET_IP)|(RE:IPADDR)' : 'use either an ip address
or a reference to one of the IP_NET_x-Variables (i.e. IP_NET_1_IPADDR)'
HOST_NAME = 'HOSTNAME|(RE:HOSTNAME)'



base.ext "original"
---------------



that matches your KEYBOARD_LOCALE='$KEYBOARD_LOCALE' setting!"
fi
fi
fi

foreach i in HOSTS_N
do
foreach j in HOSTS_N
do
set hostip1=host_%_ip[i]

in:
---------------

that matches your KEYBOARD_LOCALE='$KEYBOARD_LOCALE' setting!"
fi
fi
fi

if (opt_makekbl && opt_menu)
then
add_to_opt "etc/menu/700-makekbl" "flags=utxt"
fi

foreach i in HOSTS_N
do
foreach j in HOSTS_N
do
set hostip1=host_%_ip[i]
set hostip2=host_%_ip[j]


base.txt "original"
--------------


+DEBUG_STARTUP - -
YESNO
+DEBUG_LOG - -
E_ABS_PATH
KEYBOARD_LOCALE - -
KEYBOARD_LOCALE
OPT_MAKEKBL - -
YESNO


in:
------------

+DEBUG_STARTUP - -
YESNO
+DEBUG_LOG - -
E_ABS_PATH
OPT_MENU - -
YESNO
MENU_LANGUAGE OPT_MENU -
MENU_LANG
KEYBOARD_LOCALE - -
KEYBOARD_LOCALE
OPT_MAKEKBL - -
YESNO


im Ordner Config folgendes in der Base.txt hinzufügen "original"


#------------------------------------------------------------------------------
# Debug Settings:
#------------------------------------------------------------------------------
DEBUG_STARTUP='no' # write an execution trace of the boot
DEBUG_LOG='' # sequence to file DEBUG_LOG or console if
# DEBUG_LOG is empty

#------------------------------------------------------------------------------
# Keyboard layout
#------------------------------------------------------------------------------
KEYBOARD_LOCALE='auto' # auto: use most common keyboard layout for
# the language specified in 'LOCALE'
OPT_MAKEKBL='no' # set to 'yes' to make a new local keyboard
# layout map on the fli4l-router

in:
-------------------

#------------------------------------------------------------------------------
# Debug Settings:
#------------------------------------------------------------------------------
DEBUG_STARTUP='no' # write an execution trace of the boot
DEBUG_LOG='' # sequence to file DEBUG_LOG or console if
# DEBUG_LOG is empty

#------------------------------------------------------------------------------
# Show service menu after login:
#------------------------------------------------------------------------------
OPT_MENU='yes' # service menu for users
MENU_LANGUAGE='' # language for the service menu; defaults to
# 'LOCALE' if left empty

#------------------------------------------------------------------------------
# Keyboard layout
#------------------------------------------------------------------------------
KEYBOARD_LOCALE='auto' # auto: use most common keyboard layout for
# the language specified in 'LOCALE'
OPT_MAKEKBL='no' # set to 'yes' to make a new local keyboard
# layout map on the fli4l-router


im Ordner opt folgendes in der Base.txt hinzufügen "original"
---------------------------------------------------


#----------------------------------------------------------------------------
# optional isapnptools for configuration of PNP cards, used if OPT_PNP='yes'
#----------------------------------------------------------------------------
opt_pnp yes etc/isapnp.conf flags=utxt
opt_pnp yes files/sbin/pnpdump mode=555
opt_pnp yes files/sbin/isapnp mode=555

#----------------------------------------------------------------------------
# option floppy mount, used if OPT_MOUNTFLOPPY='first' or 'second'
#----------------------------------------------------------------------------
mountfloppy first etc/rc.d/rc030.mountfloppy mode=555 flags=sh
mountfloppy second etc/rc.d/rc030.mountfloppy mode=555 flags=sh

in:
-----------------------

#----------------------------------------------------------------------------
# optional isapnptools for configuration of PNP cards, used if OPT_PNP='yes'
#----------------------------------------------------------------------------
opt_pnp yes etc/isapnp.conf flags=utxt
opt_pnp yes files/sbin/pnpdump mode=555
opt_pnp yes files/sbin/isapnp mode=555

#----------------------------------------------------------------------------
# optional start-menu, used if OPT_MENU='yes'
#----------------------------------------------------------------------------
menu yes etc/rc.d/rc990.menu mode=555 flags=sh
menu yes etc/menu/101-help flags=utxt
menu yes etc/menu/102-language flags=utxt
menu yes etc/menu/103-halt flags=utxt
menu yes etc/menu/104-reboot flags=utxt
menu yes etc/menu/105-bootmsg flags=utxt
menu yes etc/menu/106-logout flags=utxt
menu yes etc/menu/200-packetfilter flags=utxt
menu yes etc/menu/400-ifconfig flags=utxt
menu yes etc/menu/400-route flags=utxt
menu yes etc/menu/400-ping_www.fli4l.de flags=utxt
menu yes etc/menu/700-df flags=utxt
menu yes etc/menu/700-mount flags=utxt
menu yes files/usr/local/bin/menu.sh mode=555 flags=sh

#----------------------------------------------------------------------------
# option floppy mount, used if OPT_MOUNTFLOPPY='first' or 'second'
#----------------------------------------------------------------------------
mountfloppy first etc/rc.d/rc030.mountfloppy mode=555 flags=sh
mountfloppy second etc/rc.d/rc030.mountfloppy mode=555 flags=sh




dann brauchen wir noch diverse dateien, ich habe einfach das opt_base v
3.0.1 genommen, die opt_base entpacken und folgende dateien in das entpackte
3.2.1 kopieren


die dateien aus 3.0.1 nach opt/etc/menu

101-help
102-language
103-halt
104-reboot
105-bootmsg
106-logout
200-packetfilter
400-ifconfig
400-ping_www.fli4l.de
400-route
700-df
700-makekbl
700-mount




die datei aus 3.0.1 nach opt/etc/rc.d
----------------------------------------

rc990.menu



die dateien aus 3.0.1 nach opt/files/usr/local/bin/
------------------------------------------------

menu.sh


****************************************************
400-ifconfig im ordner menu

ifconfig ersetzt durch ip link show

*****************************************************


Folgendes ist von mir :

zusätzlich habe ich auch noch die folgenden Dateien in opt/etc/menu aus
der alten Version kopiert :
400-dslmodem
400-imonc
400-netstat
400-top

Dann in check/dsl.ext
if (pppoe_type == "in_kernel")
then
add_to_opt "files/usr/sbin/pppoe" "mode=555"
fi
fi
ersezt durch
if (pppoe_type == "in_kernel")
then
add_to_opt "files/usr/sbin/pppoe" "mode=555"
fi
if (opt_menu)
then
add_to_opt "etc/menu/400-dslmodem" "flags=utxt"
fi
fi

Ausserdem in check/tools.ext die folgenden Zeilen angehängt
if (opt_menu)
then
if (opt_imonc)
then
add_to_opt "etc/menu/400-imonc" "flags=utxt"
fi

if (opt_netstat)
then
add_to_opt "etc/menu/400-netstat" "flags=utxt"
fi

if (opt_top)
then
add_to_opt "etc/menu/400-top" "flags=utxt"
fi
fi

Schliesslich habe ich noch in den Script-Dateien selbst die folgenden
Anpassungen gemacht :

400-route :
route -n
geändert in
ip route show

400-ping_www.fli4l.de
ping -c 1 www.fli4l.de
geändert in
ping -c 1 -4 www.fli4l.de

400-dslmodem :
ifconfig | grep -e ^eth -e ^br -e ^wlan | cut -d" " -f1 |
while read line
do
echo -n "$line: "
pppoe -A -I $line
done
geändert in
ip link show | grep -e eth -e br -e wlan | cut -d" " -f2 | cut -d":" -f1
while read line
do
if [ $line != "" ]
then
echo -n "$line: "
pppoe -A -I $line
fi
done

Inzwischen ist aus alledem das opt_menu geworden, dass in der offiziellen opt-db zu finden ist.

Es besteht also kein Grund mehr, diese Änderungen von Hand durchzuführen !