View Single Post
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#7
Really funny thing that script (weird kind of humour you have)

Some ideas for improvement:
  • don't copy script file but create a symlink to it
  • create that link (or put the copy) in /home/user/bin, as /usr/bin is for system binaries and not for own created files. In FSH the correct place would be /usr/local/bin but that's not handled correctly by Nokia.
  • add /home/user/bin to $PATH (needs editing some login script)
  • test if command already exists and prompt user for confirmation if it does
  • do some error handling
Besides that, some nice idea.