Skip to content

Commit

Permalink
Rename the module as well
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
  • Loading branch information
xl0 committed May 7, 2011
1 parent f80ebf2 commit 8cb2d31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions virtio_net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ LDFLAGS=-r -dy -N misc/mac -N drv/virtio
#CC=/opt/SUNWspro/bin/cc
CC=gcc
LD=/usr/ccs/bin/ld
all: virtio_net
all: vioif

virtio_net: virtio_net.c ../virtio/virtiovar.h
$(CC) $(CFLAGS) -c virtio_net.c -o virtio_net.o
$(LD) $(LDFLAGS) virtio_net.o -o virtio_net
vioif: vioif.c ../virtio/virtiovar.h
$(CC) $(CFLAGS) -c vioif.c -o vioif.o
$(LD) $(LDFLAGS) vioif.o -o vioif

clean:
rm -f virtio_net virtio_net.o
rm -f vioif vioif.o
2 changes: 1 addition & 1 deletion virtio_net/make-n-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
export PATH=$PATH:/sbin:/usr/sbin

./rem.sh
make clean && make && sudo modload virtio_net
make clean && make && sudo modload vioif


4 changes: 2 additions & 2 deletions virtio_net/rem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

export PATH=$PATH:/sbin:/usr/sbin

sudo ifconfig virtio_net0 unplumb
sudo modunload -i `modinfo | grep virtio_net | cut -d " " -f 1`
sudo ifconfig vioif0 unplumb
sudo modunload -i `modinfo | grep vioif | cut -d " " -f 1`

#sudo rem_drv virtio_net
# sudo rm /kernel/drv/amd64/virtio_net
Expand Down
File renamed without changes.

0 comments on commit 8cb2d31

Please sign in to comment.