I posted this to both lists since it seems that the newbies list is not
getting much readership. I am trying to get my Backpack CD burner working
under Xandros. The HOWTO says that I need to run the following script:
#!/bin/bash
#
# mkd -- a script to create the device special files for the PARIDE
subsystem
#
function mkdev {
mknod $1 $2 $3 $4 ; chmod 0660 $1 ; chown root:disk $1
}
#
function pd {
D=$( printf \\$( printf "x%03x" $[ $1 + 97 ] ) )
mkdev pd$D b 45 $[ $1 * 16 ]
for P in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
do mkdev pd$D$P b 45 $[ $1 * 16 + $P ]
done
}
#
cd /dev
#
for u in 0 1 2 3 ; do pd $u ; done
for u in 0 1 2 3 ; do mkdev pcd$u b 46 $u ; done
for u in 0 1 2 3 ; do mkdev pf$u b 47 $u ; done
for u in 0 1 2 3 ; do mkdev pt$u c 96 $u ; done
for u in 0 1 2 3 ; do mkdev npt$u c 96 $[ $u + 128 ] ; done
for u in 0 1 2 3 ; do mkdev pg$u c 97 $u ; done
#
# end of mkd
a
I saved the above to a file that I called mkd. I am logged in as root in the
directory where mkd is saved. When I type "mkd", I get "bash: mkd: command
not found" Do I need some kind of extension on the file name to get the os
to execute the script? I didn't think that was required. Any help will be
appreciated.
Ed Richards
This email, including any attached files, may contain confidential and
privileged information. Any review, use, distribution or disclosure of
included information by unintended recipients is strictly prohibited. If you
are not a named recipient or authorized to receive and / or act on information
sent to a named recipient, or have reason to believe you are not or should not
be one of the named recipients, please notify sender accordingly by reply email
and delete all copies of this message prior to forwarding, copying or otherwise
reproducing this message or attachments thereto. For information regarding the
export control status of items discussed in this document, please refer to the
project control list. Thank you.