Advertisement
s243a

/etc/rc.d/rc.sysinit::status_func()

Sep 7th, 2016
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. #Lines 109 to 121 of /etc/rc.d/rc.sysinit -- puppylinux
  2. #http://www.pearltrees.com/s243a/rc-sysinit-puppylinux/id16200212
  3. status_func() {
  4.  if [ $1 -eq 0 ];then
  5.   /bin/echo -n -e "\\033[74G\\033[1;32m" >/dev/console #green [done] msg. 110426: change 72 to 74.
  6.   /bin/echo -n "done" >/dev/console #done
  7.   /bin/echo -e "\\033[0;39m" >/dev/console
  8.  else
  9.   /bin/echo -n -e "\\033[72G\\033[1;31m" >/dev/console #red [failed]. 110426: change 70 to 72.
  10.   /bin/echo -n "failed" >/dev/console #failed
  11.   /bin/echo -e "\\033[0;39m" >/dev/console
  12.   STATUS=0
  13.  fi
  14.  return $1 #return with same status as entry param.
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement