diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-17 23:19:48 -0600 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-17 23:19:55 -0600 |
commit | 3798b63c5f2b0baea3b24be48ede03bfbef7d81b (patch) | |
tree | dd137f0638f6ccbf53af170253a6c0aafd6d014b /package/firefox/files | |
parent | 268ddf223cd7303ddfd8b8ef07c2ce7406e3bc39 (diff) |
add first preview of a firefox appliance. java plugin and kiosk addon missing.
Diffstat (limited to 'package/firefox/files')
-rwxr-xr-x | package/firefox/files/firefox.init | 31 | ||||
-rw-r--r-- | package/firefox/files/firefox.postinst | 6 | ||||
-rw-r--r-- | package/firefox/files/xinitrc | 1 |
3 files changed, 38 insertions, 0 deletions
diff --git a/package/firefox/files/firefox.init b/package/firefox/files/firefox.init new file mode 100755 index 000000000..9fec2b5df --- /dev/null +++ b/package/firefox/files/firefox.init @@ -0,0 +1,31 @@ +#!/bin/sh +#PKG firefox +#INIT 98 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${firefox:-NO}" = x"NO" && exit 0 + test x"$firefox" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start + exec sh $0 start + ;; +start) + if [ ! -d /data/firefox ];then + mkdir /data/firefox + chown firefox /data/firefox + fi + su - firefox -c startx + ;; +stop) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/firefox/files/firefox.postinst b/package/firefox/files/firefox.postinst new file mode 100644 index 000000000..a9be54701 --- /dev/null +++ b/package/firefox/files/firefox.postinst @@ -0,0 +1,6 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf firefox NO +gid=$(get_next_gid) +add_group firefox $gid +add_user firefox $(get_next_uid) $gid /data/firefox /bin/sh diff --git a/package/firefox/files/xinitrc b/package/firefox/files/xinitrc new file mode 100644 index 000000000..cdc71236c --- /dev/null +++ b/package/firefox/files/xinitrc @@ -0,0 +1 @@ +exec firefox |