Предлагаю от sed отказаться и заменить строчку в файле: /etc/init.d/starboardservice
device=`find . -type l -exec ls -la {} \; | grep devices | cut -c41-800 | sed "s:^\.\/::g" | sed "s/->.*//g" | sed "s/ //g"`
на
device=`find . -type l -exec ls -la {} \; | grep devices | cut -c41-800 | rev | cut -d '/' -f1 | rev`