-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cde51c1
Showing
35 changed files
with
780 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added
0
...purge $(check-language-support --show-installed -l zh-hans | sed "s| |\n|g" | grep fonts)
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd $(dirname $0) | ||
./no-lab126 ./start-chroot "$(./mod-begin)$(./mod-wifi)$(./mod-x11 awesome)$(./mod-end)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd $(dirname $0) | ||
./no-lab126 ./start-chroot "$(./mod-begin)$(./mod-wifi)$(./mod-x11 startxfce4)$(./mod-end)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
language="zh_CN.UTF-8" | ||
user="zaoqi" | ||
password="NoPassword" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extension> | ||
<information> | ||
<name>Ubuntu</name> | ||
<version>1.0</version> | ||
<author>zaoqi</author> | ||
<id>ubuntu</id> | ||
</information> | ||
<menus> | ||
<menu type="json" dynamic="true">menu.json</menu> | ||
</menus> | ||
</extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"items": [ | ||
{"name": "Ubuntu/awesome", "priority": 1, "action": "./app-awesome"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
cd $(dirname $0) | ||
. conf | ||
echo " | ||
export HOME=/root | ||
unset LC_ALL | ||
export SHELL=/bin/bash | ||
export LANG=$language | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
cd $(dirname $0) | ||
. conf | ||
killall wpa_supplicant | ||
echo " | ||
killall wpa_supplicant | ||
wpa_supplicant -t -c /etc/wpa_supplicant.conf -i wlan0 -d -s -D nl80211& | ||
/etc/init.d/dbus start | ||
/etc/init.d/wicd stop | ||
/etc/init.d/wicd start | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
cd $(dirname $0) | ||
. conf | ||
echo " | ||
sudo -u $user -i sh -c 'Xephyr :1 -title L:A_N:application_ID:xephyr_0:R_PC:N -screen 600x800 -cc 4 -dpi 167 -nocursor &sleep 1;DISPLAY=:1 exec $1' | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/sh | ||
# Check which type of init system we're running on | ||
if [ -d /etc/upstart ]; then | ||
export INIT_TYPE="upstart" | ||
else | ||
export INIT_TYPE="sysv" | ||
fi | ||
|
||
# Go away if we're on FW 5.0, it's not supported | ||
if [ "${INIT_TYPE}" = "upstart" ]; then | ||
if grep '^Kindle 5\.0' /etc/prettyversion.txt >/dev/null 2>&1; then | ||
# "FW 5.0 is not supported. Update to 5.1!" | ||
# And... scene! | ||
exit 0 | ||
fi | ||
fi | ||
|
||
# Yield a bit to let stuff stop properly... | ||
# NOTE: This may or may not be terribly useful... | ||
usleep 250000 | ||
|
||
# If we were started by the KUAL Kindlet, and not the Booklet, we have a nice value to correct... | ||
if [ "$(nice)" = "5" ]; then | ||
# Kindlet threads spawn with a nice value of 5, go back to a neutral value | ||
renice -n -5 $$ | ||
fi | ||
|
||
# The framework job sends a SIGTERM on stop, trap it so we don't get killed if we were launched by KUAL | ||
trap "" TERM | ||
|
||
# Upstart or SysV? | ||
if [ "${INIT_TYPE}" = "sysv" ]; then | ||
/etc/init.d/framework stop | ||
else | ||
stop lab126_gui | ||
# NOTE: Let the framework teardown finish, so we don't start before the black screen... | ||
usleep 1250000 | ||
fi | ||
|
||
killall -stop getty volumd | ||
|
||
# And remove the trap like a ninja now! | ||
trap - TERM | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
swapon /mnt/base-us/SWAP | ||
cd $(dirname $0) | ||
cd rootfs | ||
cd $(pwd | sed 's|/us/|/base-us/|') | ||
mount --bind /dev ./dev | ||
mount --bind /dev/pts ./dev/pts | ||
mount --bind /proc ./proc | ||
mount --bind /sys ./sys | ||
mount --bind /tmp ./tmp | ||
same(){ | ||
[ -e /"$1" ] && rm -fr ./"$2" | ||
cp -r /"$1" ./"$2" || cp -r ./"$2" /"$1" | ||
mount --bind /"$1" ./"$2" | ||
} | ||
same var/run/wpa_supplicant run/wpa_supplicant | ||
same var/run/resolv.conf etc/resolv.conf | ||
same etc/wpa_supplicant.conf etc/wpa_supplicant.conf | ||
|
||
chroot . /bin/sh -c "$*" | ||
reboot |