Lancement de configure a chaque demarrage de fcron
[hvlinux.git] / stage3 / pkg / lynx
index 3b53d58..7e193fc 100644 (file)
@@ -1,12 +1,13 @@
 #!/bin/bash
 
-LYNX_CFG_PATH=/etc/lynx.cfg
+LYNX_CFG_PATH=/etc/lynx/lynx.cfg
 
 hvconfig_pre()
 {
     # --sysconfdir=/etc/lynx \
     CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+        --prefix=/usr \
+        --sysconfdir=/etc/lynx \
         --datadir=/usr/share/doc/lynx \
         --with-zlib \
         --with-bzlib \
@@ -24,8 +25,19 @@ hvbuild_post()
     # 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:vi/' ${LYNX_CFG_PATH}
+    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}
+
+
+
 }