Fixed #35, fixed a xfce power setting, working on live usb installer
This commit is contained in:
parent
5d104c75ed
commit
d4499c4cef
@ -8,12 +8,12 @@
|
|||||||
<property name="brightness-on-battery" type="uint" value="9"/>
|
<property name="brightness-on-battery" type="uint" value="9"/>
|
||||||
<property name="brightness-level-on-battery" type="uint" value="100"/>
|
<property name="brightness-level-on-battery" type="uint" value="100"/>
|
||||||
<property name="dpms-on-battery-off" type="uint" value="15"/>
|
<property name="dpms-on-battery-off" type="uint" value="15"/>
|
||||||
<property name="dpms-on-battery-sleep" type="uint" value="14"/>
|
<property name="dpms-on-battery-sleep" type="uint" value="0"/>
|
||||||
<property name="blank-on-battery" type="int" value="10"/>
|
<property name="blank-on-battery" type="int" value="10"/>
|
||||||
<property name="blank-on-ac" type="int" value="0"/>
|
<property name="blank-on-ac" type="int" value="0"/>
|
||||||
<property name="dpms-on-ac-sleep" type="uint" value="29"/>
|
<property name="dpms-on-ac-sleep" type="uint" value="0"/>
|
||||||
<property name="dpms-on-ac-off" type="uint" value="30"/>
|
<property name="dpms-on-ac-off" type="uint" value="30"/>
|
||||||
<property name="inactivity-on-battery" type="uint" value="30"/>
|
<property name="inactivity-on-battery" type="uint" value="30"/>
|
||||||
<property name="brightness-level-on-ac" type="uint" value="100"/>
|
<property name="brightness-level-on-ac" type="uint" value="100"/>
|
||||||
</property>
|
</property>
|
||||||
</channel>
|
</channel>
|
||||||
|
@ -2,4 +2,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#Install PrawnOS to an external device, the first usb by default
|
#Install PrawnOS to an external device, the first usb by default
|
||||||
|
apt install -y parted
|
||||||
|
parted /dev/sda \
|
||||||
|
print \
|
||||||
|
Fix \
|
||||||
|
partx -s /dev/sda2
|
||||||
|
resize2fs /dev/sda2
|
||||||
|
@ -64,13 +64,12 @@ create_image PrawnOS-Alpha-c201-libre-2GB.img $outdev 50M 40 $outmnt
|
|||||||
|
|
||||||
# install Debian on it
|
# install Debian on it
|
||||||
export LC_ALL="en_US.UTF-8" #Change this as necessary if not US
|
export LC_ALL="en_US.UTF-8" #Change this as necessary if not US
|
||||||
|
export LANGUAGE="en_US.UTF-8"
|
||||||
|
export LANG="en_US.UTF-8"
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
qemu-debootstrap --arch armhf stretch --include locales,init $outmnt http://deb.debian.org/debian
|
qemu-debootstrap --arch armhf stretch --include locales,init --keyring=$build_resources/debian-archive-keyring.gpg $outmnt http://deb.debian.org/debian
|
||||||
chroot $outmnt passwd -d root
|
chroot $outmnt passwd -d root
|
||||||
|
|
||||||
#Copy in the gpg key
|
|
||||||
cp $build_resources/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-keyring.gpg
|
|
||||||
|
|
||||||
#Place the config files and installer script and give them the proper permissions
|
#Place the config files and installer script and give them the proper permissions
|
||||||
echo -n PrawnOS-Alpha > $outmnt/etc/hostname
|
echo -n PrawnOS-Alpha > $outmnt/etc/hostname
|
||||||
cp -R $install_resources/ $outmnt/InstallResources/
|
cp -R $install_resources/ $outmnt/InstallResources/
|
||||||
@ -108,6 +107,9 @@ make -C build/linux-$KVER ARCH=arm INSTALL_MOD_PATH=$outmnt modules_install
|
|||||||
rm -f $outmnt/lib/modules/3.14.0/{build,source}
|
rm -f $outmnt/lib/modules/3.14.0/{build,source}
|
||||||
install -D -m 644 build/open-ath9k-htc-firmware/target_firmware/htc_9271.fw $outmnt/lib/firmware/ath9k_htc/htc_9271-1.4.0.fw
|
install -D -m 644 build/open-ath9k-htc-firmware/target_firmware/htc_9271.fw $outmnt/lib/firmware/ath9k_htc/htc_9271-1.4.0.fw
|
||||||
|
|
||||||
echo "DONE!"
|
|
||||||
cleanup
|
|
||||||
|
|
||||||
|
umount -l $outmnt > /dev/null 2>&1
|
||||||
|
rmdir $outmnt > /dev/null 2>&1
|
||||||
|
losetup -d $outdev > /dev/null 2>&1
|
||||||
|
echo "DONE!"
|
||||||
|
trap - INT TERM EXIT
|
||||||
|
Loading…
Reference in New Issue
Block a user