755 root operator /usr/lib/keymaps
755 root operator /usr/lib/m2
755 root operator /usr/sbin
-755 root operator /usr/sbin/drivers
-755 root operator /usr/sbin/servers
775 bin operator /usr/local
775 bin operator /usr/local/bin
775 bin operator /usr/local/include
/* Minix release and version numbers. */
#define OS_RELEASE "3"
-#define OS_VERSION "0.6"
+#define OS_VERSION "0.7"
/* This file sets configuration parameters for the MINIX kernel, FS, and PM.
FD_SET(pty_fds[CHILDFD], &fds_exception);
timeout.tv_sec = 5;
timeout.tv_usec = 0;
- retval = select(pty_fds[CHILDFD]+1, &fds_read, NULL, &fds_exception, &timeout);
+ retval = select(pty_fds[CHILDFD]+2, &fds_read, NULL, &fds_exception, &timeout);
if (retval == -1) {
perror("select");
fprintf(stderr, "child: Error in select\n");
FD_SET(pty_fds[PARENTFD], &fds_write);
printf("pid %d Waiting for pty ready to write on %s...\n",
getpid(), name);
- retval = select(pty_fds[PARENTFD]+1, NULL, &fds_write, NULL, NULL);
+ retval = select(pty_fds[PARENTFD]+2, NULL, &fds_write, NULL, NULL);
if (retval == -1) {
perror("select");
fprintf(stderr, "Parent: Error in select\n");
fprintf(stderr, "parent: write fd not set?! retrying\n");
continue;
}
- retval = write(pty_fds[PARENTFD], &data, 1024);
+ retval = write(pty_fds[PARENTFD], data, 1024);
if (retval == -1) {
perror("write");
fprintf(stderr, "Error writing on pty\n");
exit(-1);
- }
+ } else printf("wrote %d\n", retval);
}
/* got exit from user */
cp -p ../boot/boot /mnt/boot/boot || exit 1
umount $dev || exit 1
installboot -d $dev ../boot/bootblock boot/boot || exit 1
- edparams $dev 'unset bootopts; unset servers; unset image; cdproberoot=1; unset rootdev; unset leader; leader() { echo \n--- Welcome to MINIX 3 ---\n\nThis is the MINIX boot monitor.\nPress ESC if you need to do any special configuration\nOtherwise I will boot with my defaults in 10 seconds\n\n }; bootcd=1; main(){delay 10000;boot}; save' || exit
+ edparams $dev 'unset bootopts; unset servers; disable=inet; unset image; cdproberoot=1; unset rootdev; unset leader; leader() { echo \n--- Welcome to MINIX 3 ---\n\nThis is the MINIX boot monitor.\nPress ESC if you need to do any special configuration\nOtherwise I will boot with my defaults in 10 seconds\n\n }; bootcd=1; main(){delay 10000;boot}; save' || exit
# copy image
dd if=$dev of=cdfdimage bs=8192 count=180