Minor installation defects
Hello!
I've just installed the current Debian/Hurd from ftp.debian.org
The improvements over the older versions are very visible - thanks to
everybody who did it.
However, I'd like to present you some notes which I've made during the
installation.
dpkg-hurd uses bash-2 features. /bin/sh on RedHat Linux is bash-1.14.7,
which doesnt understant multiple -o inside brackets. Is it not better to
use "case" instead?
Patch attached.
After running native-install there is no instruction about rebooting the
computer. By the way, it would be nice to tell the user about "init 6",
because Ctrl-Alt-Del doesn't work.
There is "mount", but there is no "umount"
"mount --help" doesn't work
GNU Midnight Commander would be a nice thing to have. I have successfully
compiled it. There are minor defects with subshell support (Ctrl-O must be
pressed three times to get back to the panels), but it is not very
important now.
"su root" from the login prompt sets $HOME to /etc/login instead of /root
Pavel Roskin
--- dpkg-hurd.v0 Tue May 4 14:42:00 1999
+++ dpkg-hurd Tue May 25 20:38:16 1999
@@ -65,7 +65,8 @@
# [ "$#" == 2 ] || err "exactly two arguments, an action and a *.deb file or package name is required"
-if [ "${1}" == "-i" -o "${1}" == "--install" -o "${1}" == "--unpack" ] ; then
+case ${1} in
+"-i"|"--install"|"--unpack")
action="${1}"
file="${2}"
@@ -120,10 +121,11 @@
# Clean temp directory.
rm -fR temp_build
exit 0
+ ;;
+esac
-fi
-
-if [ "${1}" == "-r" -o "${1}" == "--remove" -o "${1}" == "--purge" ] ; then
+case ${1} in
+"-r"|"--remove"|"--purge")
action="${1}"
name="${2}"
@@ -148,13 +150,15 @@
fi
done
exit 0
+ ;;
+esac
-fi
-
-if [ "${1}" == "-s" -o "${1}" == "-S" -o "${1}" == "-l" -o "${1}" == "-L" ] ; then
+case ${1} in
+"-s"|"-S"|"-l"|"-L")
dpkg --root=. --admindir=${vld} "${@}"
exit 0
-fi
+ ;;
+esac
# dpkg-hurd - end of file.
Reply to: