Advertisement
Guest User

Untitled

a guest
Jan 10th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. old_dir=`pwd`
  4.  
  5. if [ `whoami` != root ]
  6. then
  7. echo "You must be root to run the script!"
  8. exit
  9. fi
  10.  
  11. if [ ! -d "/media/filip/Alt_OS" ]
  12. then
  13. echo "Given directory does not exist!"
  14. exit
  15. fi
  16.  
  17. echo Copying modules
  18. cd mods
  19. cp -R lib /media/filip/Alt_OS/
  20. echo "Copying zImage to /boot"
  21. cp ../arch/arm/boot/zImage /media/filip/Alt_OS/boot/
  22. cd /media/filip/Alt_OS/boot
  23. echo "linking /boot/bzImage to point to zImage"
  24. ln -f -s zImage bzImage
  25. cd $old_dir
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement