aboutsummaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
Diffstat (limited to 'sutils')
-rw-r--r--sutils/MAKEDEV.sh10
-rw-r--r--sutils/Makefile4
2 files changed, 7 insertions, 7 deletions
diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh
index c9bd209f..4277b052 100644
--- a/sutils/MAKEDEV.sh
+++ b/sutils/MAKEDEV.sh
@@ -51,12 +51,12 @@ case "$#" in 0)
exit 1;;
esac
-function cmd {
+cmd() {
eval $ECHO "$@"
eval $EXEC "$@"
}
-function st {
+st() {
local NODE="$1"
local OWNER="$2"
local PERM="$3"
@@ -68,7 +68,7 @@ function st {
fi
}
-function lose {
+lose() {
local line
for line; do
echo 1>&2 "$0: $line"
@@ -76,7 +76,7 @@ function lose {
exit 1
}
-function mkdev {
+mkdev() {
local I
for I; do
case $I in
@@ -120,7 +120,7 @@ function mkdev {
# ptys
[pt]ty[pqrstuvwxyzPQRS]?)
# Make one pty, both the master and slave halves.
- local id="${I:3}"
+ local id="${I#???}"
st pty$id root 666 /hurd/term ${DEVDIR}/pty$id \
pty-master ${DEVDIR}/tty$id
st tty$id root 666 /hurd/term ${DEVDIR}/tty$id \
diff --git a/sutils/Makefile b/sutils/Makefile
index be2da539..b2383579 100644
--- a/sutils/Makefile
+++ b/sutils/Makefile
@@ -1,6 +1,6 @@
# Makefile for sutils
#
-# Copyright (C) 1996,97,99,2000 Free Software Foundation, Inc.
+# Copyright (C) 1996,97,99,2000,2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@ -25,7 +25,7 @@ scripts = e2os MAKEDEV losetup
targets = $(special-targets) $(progs)
special-targets = $(scripts)
installationdir = $(sbindir)
-SRCS = $(progs:=.c) $(scripts:=.sh)
+SRCS = $(progs:=.c) clookup.c fstab.c update.c $(scripts:=.sh)
LCLHDRS = fstab.h
OBJS = $(progs:=.c)