Skip to content

Commit

Permalink
Merge pull request #11 from neochapay/master
Browse files Browse the repository at this point in the history
[udev] Add simple udev rules
  • Loading branch information
locusf authored Jul 11, 2018
2 parents 80ea7f4 + 9e2634f commit e3b0f69
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions conf/01-fbdev.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
KERNEL=="fb*", MODE="0666"
2 changes: 2 additions & 0 deletions conf/01-input.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
KERNEL=="event*", MODE="0666"
KERNEL=="input*", MODE="0666"
10 changes: 9 additions & 1 deletion rpm/nemo-mobile-session.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Requires(post): /bin/chgrp, /usr/sbin/groupmod
Summary: Wayland configs for nemo-mobile-session
Group: Configs
Requires: nemo-mobile-session-common
Conflicts: nemo-mobile-session-xorg


%description wayland
%{summary}
Expand All @@ -43,6 +43,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
mkdir -p %{buildroot}/var/lib/environment/nemo
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/
mkdir -p %{buildroot}%{_libdir}/systemd/user/pre-user-session.target.wants/
mkdir -p %{buildroot}/lib/udev/rules.d/

# Root services
install -D -m 0644 services/[email protected]/nemo.conf \
Expand All @@ -56,6 +57,10 @@ install -m 0644 conf/50-nemo-mobile-ui.conf %{buildroot}/var/lib/environment/nem
install -D -m 0644 conf/nemo-session-tmp.conf %{buildroot}%{_libdir}/tmpfiles.d/nemo-session-tmp.conf
install -m 0644 conf/50-nemo-mobile-wayland.conf %{buildroot}/var/lib/environment/nemo/

#udev rules
install -m 0644 conf/01-input.rules %{buildroot}/lib/udev/rules.d/
install -m 0644 conf/01-fbdev.rules %{buildroot}/lib/udev/rules.d/

# bin
install -D -m 0744 bin/set-boot-state %{buildroot}%{_libdir}/startup/set-boot-state
install -D -m 0755 bin/start-user-session %{buildroot}%{_libdir}/startup/start-user-session
Expand Down Expand Up @@ -104,11 +109,14 @@ fi
/lib/systemd/system/[email protected]
/lib/systemd/system/start-user-session.service
/lib/systemd/system/init-done.service
/lib/udev/rules.d/01-input.rules
/lib/udev/rules.d/01-fbdev.rules
%{_libdir}/startup/start-user-session
%{_libdir}/startup/set-boot-state
%{_libdir}/startup/init-done
%{_sysconfdir}/systemd/system/runlevel4.target


%files wayland
%defattr(-,root,root,-)
%config /var/lib/environment/nemo/50-nemo-mobile-wayland.conf
Expand Down

0 comments on commit e3b0f69

Please sign in to comment.