#!/bin/bash LYNX_CFG_PATH=/etc/lynx/lynx.cfg hvconfig_pre() { # --sysconfdir=/etc/lynx \ CONFIGURE_OPTS="\ --prefix=/usr \ --sysconfdir=/etc/lynx \ --datadir=/usr/share/doc/lynx \ --with-zlib \ --with-bzlib \ --with-ssl \ --with-screen=ncursesw \ --enable-locale-charset" } hvbuild_post() { # The proper way to get the display character set is to examine the current # locale. However, Lynx does not do this by default. Change this setting: sed -i 's/#\(LOCALE_CHARSET\):FALSE/\1:TRUE/' ${LYNX_CFG_PATH} # The built-in editor in Lynx Breaks Multibyte Characters. Configure Lynx # to use an external editor (bound to the “Ctrl+X e” key combination by # default): sed -i 's/#\(DEFAULT_EDITOR\):/\1:nano/' ${LYNX_CFG_PATH} # By default, Lynx doesn't save cookies between sessions. Change this: sed -i 's/#\(PERSISTENT_COOKIES\):FALSE/\1:TRUE/' ${LYNX_CFG_PATH} # Set proper homepage sed -i 's!^\(STARTFILE\):.*!\1:http://www.google.com/!' ${LYNX_CFG_PATH} sed -i 's!^\(DEFAULT_INDEX_FILE\):.*!\1:http://www.google.com/!' \ ${LYNX_CFG_PATH} # Set download directory sed -i 's!#\(SAVE_SPACE\):.*!\1:~/Downloads/!' ${LYNX_CFG_PATH} }