Skip to content

Commit

Permalink
Update for rename of the panel device (/dev/panel0 -> /dev/lcdpanel0).
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsui committed Jun 14, 2020
1 parent 06ac156 commit 506c0d3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion data/cobalt/etc/paneld.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# .keyrate=300000;
.banner="/etc/paneld/banner.sh";
.devname="hd44780";
.devnode="/dev/panel0";
.devnode="/dev/lcdpanel0";

.xtbl = {
.id="select";
Expand Down
2 changes: 1 addition & 1 deletion data/cobalt/etc/rc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ rc_real_work()
script_name=`basename $_rc_elem`
[ "X$script_name" = "Xpaneld" ] && _quiet=1
[ -z "$_quiet" ] &&
echo -n "[Starting up] > $script_name " > /dev/panel0
echo -n "[Starting up] > $script_name " > /dev/lcdpanel0
run_rc_script $_rc_elem start
print_rc_metadata "cmd-status:$_rc_elem:$?"
done
Expand Down
6 changes: 3 additions & 3 deletions data/cobalt/etc/rc.d/mountmfs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ printmsg()
_category="$1"
_message="$2"

if [ ! -f /dev/panel0 ]; then
cd /dev && ./MAKEDEV panel
if [ ! -f /dev/lcdpanel0 ]; then
cd /dev && ./MAKEDEV lcdpanel
fi

echo "$_message"
printf "%-16s%-16s" "$_category" " $_message" > /dev/panel0
printf "%-16s%-16s" "$_category" " $_message" > /dev/lcdpanel0
}

mountmfs_start()
Expand Down
2 changes: 1 addition & 1 deletion data/cobalt/etc/rc.shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ files=$(rcorder -k shutdown ${rcshutdown_rcorder_flags} ${scripts})

for _rc_elem in $(reverse_list $files); do
script_name=`basename $_rc_elem`
echo -n "[Shutting down] > $script_name " > /dev/panel0
echo -n "[Shutting down] > $script_name " > /dev/lcdpanel0
run_rc_script $_rc_elem stop
done

Expand Down
2 changes: 1 addition & 1 deletion data/cobalt/install/files/etc/paneld.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# .keyrate=300000;
.banner="/etc/paneld/banner.sh";
.devname="hd44780";
.devnode="/dev/panel0";
.devnode="/dev/lcdpanel0";

.xtbl = {
.id="select";
Expand Down
2 changes: 1 addition & 1 deletion data/cobalt/install/files/etc/rc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ rc_real_work()
script_name=`basename $_rc_elem`
[ "X$script_name" = "Xpaneld" ] && _quiet=1
[ -z "$_quiet" ] &&
echo -n "[Starting up] > $script_name " > /dev/panel0
echo -n "[Starting up] > $script_name " > /dev/lcdpanel0
run_rc_script $_rc_elem start
print_rc_metadata "cmd-status:$_rc_elem:$?"
done
Expand Down
2 changes: 1 addition & 1 deletion data/cobalt/install/files/etc/rc.shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ files=$(rcorder -k shutdown ${rcshutdown_rcorder_flags} ${scripts})

for _rc_elem in $(reverse_list $files); do
script_name=`basename $_rc_elem`
echo -n "[Shutting down] > $script_name " > /dev/panel0
echo -n "[Shutting down] > $script_name " > /dev/lcdpanel0
run_rc_script $_rc_elem stop
done

Expand Down
2 changes: 1 addition & 1 deletion data/cobalt/install/scripts/install-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ printmsg()
echo " ------------------------------------------------"
echo ""

_panel=/dev/panel0
_panel=/dev/lcdpanel0
[ -c $_panel ] &&
printf "%-16s%-16s" "$_category" " $_message" > $_panel
}
Expand Down

0 comments on commit 506c0d3

Please sign in to comment.