Skip to content

Commit

Permalink
Merge pull request #107 from princeofgiri/master
Browse files Browse the repository at this point in the history
remove cbatticon for computer without battery
  • Loading branch information
herpiko authored Oct 31, 2016
2 parents 272a3fe + a31311d commit f9bc34c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/b-i-setup-fs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ if [ -f /run/locale ];then
fi

###### gnome settings overrides
if [ -f /usr/share/glib-2.0/schemas/blankon.gschema.override && -f /usr/bin/glib-compile-schemas ];then
if [ -f /usr/share/glib-2.0/schemas/blankon.gschema.override ] && [ -f /usr/bin/glib-compile-schemas ];then
cp /usr/share/glib-2.0/schemas/blankon.gschema.override $ROOTFS/target/usr/share/glib-2.0/schemas/blankon.gschema.override
do_chroot /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/
fi
Expand Down Expand Up @@ -211,6 +211,11 @@ if [ -f $ROOTFS/target/etc/apt/sources.list.d/local.list ];then
rm -f $ROOTFS/target/etc/apt/sources.list.d/local.list
fi

###### Remove cbatticon for PC
if [ ! -d /sys/class/power_supply/BAT0 ] && [ ! -d /sys/class/power_supply/BAT1 ] && [ -f $ROOTFS/target/etc/xdg/autostart/cbatticon.desktop ]; then
rm -f $ROOTFS/target/etc/xdg/autostart/cbatticon.desktop
fi

###### HOME

if [ -f /tmp/fstab ];then
Expand Down

0 comments on commit f9bc34c

Please sign in to comment.