Package: netenv Version: 0.82-11 Severity: wishlist Hello!
I have downloaded the "netenv", and I've found it very useful, but I missed something from it. The first thing what was I missed is the default selection. If I select something at the first time, then next time I want it to the default. I hacked it into the script, but it is quite a dirty hack, so a much cleaner solution would be better. I replaced the "cp"-s with "ln"-s, and the /etc/netenv/netenv is a symlink in my version. My version of the init-script and the netenv script is available at http://spam.sch.bme.hu/~dlux/netenv Warning: these are DIRTY hacks! It may not even work! Another problem, which is not addressed in my hacks, is the timeout issue. It would be good if I can set a timeout (e.g. with sigalarm), and this would kill the dialog and continue the boot with the default option. -- System Information Debian Release: testing/unstable Kernel Version: Linux dl 2.2.18ext3 #1 Fri Dec 15 14:22:54 CET 2000 i686 unknown Versions of the packages netenv depends on: ii libc6 2.2-11 GNU C Library: Shared libraries and Timezone --- Begin /etc/init.d/netenv (modified conffile) #!/bin/sh test -x /sbin/netenv || exit 0 case "$1" in start | restart | force-reload | reload) NEW_FILE="/etc/netenv/netenv" OLD_FILE="/etc/netenv/netenv.old" if [ -e $OLD_FILE ] then rm -f /etc/netenv/netenv.old fi if [ ! -e $OLD_FILE ] then mv -f $NEW_FILE $OLD_FILE fi if [ -e $NEW_FILE ] then rm -f $NEW_FILE fi /sbin/netenv.dlux ;; stop) ;; *) echo "Usage: $0 {start|stop|restart|reload|force-reload}" exit 1 ;; esac --- End /etc/init.d/netenv