cs350-scripts

Automate building and running your kernel:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if [ $# -ne 1 ]
then
echo "please give an assignment number"
exit 1
fi


cd ~
cd cs350-os161/os161-1.99/kern/conf/
./config ASST$1
cd ../compile/ASST$1/
bmake depend
bmake
bmake install
cd ../../../../root/
sys161 kernel

Automate submitting your assignment:

1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if [ $# -ne 1 ]
then
echo "please give an assignment number"
exit 1
fi

cd ~/cs350-os161

/u/cs350/bin/cs350_submit $1